Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tiny optimization
#12
I was just taking my info from:

http://www.aivosto.com/vbtips/stringopt2.html

Quote:Len and LenB. The fastest functions are Len and LenB. These are lightning fast functions that simply read the 2 length bytes at the start of the string area. Len is implemented in 6 assembly instructions in the VB runtime. LenB is even shorter: it runs just 5 instructions. In principle, LenB should run faster. In practice, this is not the case. Their performance is equal on today's processors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)