28-10-2008, 07:10 AM
JokeofWeek Wrote:Thus, ZeroMemory is much fasterJust wanted to test it out
Don't get too excited
Bitwise operators are more than 8 times faster than API Memory Handlers. Well API copymemory atleast, not sure about the others as i haven't tested.So if you did an AND bitwise operation to any data type with &h0 (if not then &h0& which bitmasks as long) you should clear it much faster. :wink:
EDIT:
Oh yeh or if you do a XOR to itself.
Long Xor Long = 0. I'm not sure if you can Xor Byte Arrays in VB i can't be bothered checking tho.

Just wanted to test it out 