Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speed testing
#16
JokeofWeek Wrote:Thus, ZeroMemory is much faster Wink Just wanted to test it out Tongue


Don't get too excited Big Grin 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. Smile
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)