Difference between revisions of "User:Meyermagic Salome/Optimizations"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 3: Line 3:
<div style="padding: 0.5em;">
<div style="padding: 0.5em;">


* For testing the first character in a string <lsl>(llSubStringIndex("test", "t") == 0);</lsl> is faster than <lsl>(llGetSubString("test", 0, 0) == "t");</lsl>, but uses a bit more memory.
* For testing the first character in a string <lsl>(llSubStringIndex("test", "t") == 0);</lsl> is faster than <lsl>(llGetSubString("test", 0, 0) == "t");</lsl>
</div></div>
</div></div>

Latest revision as of 13:54, 12 June 2008

A few optimizations

  • For testing the first character in a string <lsl>(llSubStringIndex("test", "t") == 0);</lsl> is faster than <lsl>(llGetSubString("test", 0, 0) == "t");</lsl>