
These forums are CLOSED. Please visit the new forums HERE
llGetListLength optimisation question |
|
Pete Littlebird
Registered User
Join date: 30 Sep 2009
Posts: 44
|
10-20-2009 06:29
Would I be right in thinking that all the good I do by replacing "llGetListLength (my_list)" with "
![]() |
Meade Paravane
Hedgehog
![]() Join date: 21 Nov 2006
Posts: 4,845
|
10-20-2009 07:31
Pete's full of questions today!!
![]() I think I heard that LSL lists are ArrayLists underneath with mono so llGetListLength is probably not as expensive as you think it is. Dunno for sure, though. LSL is all pass-by-value so any time you pass a list to a function, it's got to make a copy of the list - expensive! I'd guess "list != []" is cheapest followed closely by llGetListLength, followed not-so-closely by a function... _____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224 - If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left |