16-09-2008, 04:03 PM
I was just taking my info from:
http://www.aivosto.com/vbtips/stringopt2.html
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.