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>
* 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.
</div></div>
</div></div>

Revision as of 14:53, 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>, but uses a bit more memory.