PDA

Click to See Complete Forum and Search --> : base64


Jan 18th, 2000, 06:24 AM
i made a base64 dll for training and compare perfs with other people : I am so slow since I do it through strings.
Even if I build tables at class initialize event to lookup instead computing, I am still terribly slow

eg :123 --> MTIz

1 gives immediately M and 3 gives z just by looking up table
right(binary("1"),2) & left(binary("2"),4) would give "T" by lookup etc...

How can I do to not use so much clock cycles hungry functions like asc left right mid chr etc...
How can I manipulate binary values in VB

eg I got(decimal) 98 = (binary) 01100010 : how can I know that the 4 left digits 0110 are (decimal) 6 without using left function without using string data type

thank you