Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimizing and Coding Standards
#6
LenB, just divide the result by two to get true result

If you want it even faster multiple by 0.5, since multiplication is faster then division.

Or course, I dont actually know if lenB * 0.5 is still faster then len but at least lenB is still faster if your just checking if a space is blank


Oh yea, heres a good site that'll give you ideas on how to optimize your code to the max
http://www.aivosto.com/vbtips/stringopt.html
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)