Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Quick Question re script memory...

Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
07-02-2007 12:39
Sorry, searching didn't bring up an answer....

commented out lines in scripts

//like this

do they count as script memory?

hehe (probably, right)?

Blank lines, though, I take it don't?
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
07-02-2007 12:46
No to both. The actual code counts, as well as data structures - lists can grow as you add more elements to them, and that makes them take up more memory. And finally, the more you have of function A calling function B, which calls function C... each time you add to that 'function call depth', you use more memory.
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
07-02-2007 13:03
LSL is a compiled language, so comments and the like are stripped out of the compiled version. Feel free to comment copiously. (that means a lot) :)
_____________________
Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
Phew
07-02-2007 14:18
Phew, thanks!

It just occurred to me to wonder, as I have been commenting like mad.

Given how primitive (Chaz ducks!) the programming tools for LSL are compared to those available for other languages, I wasn't going to take anything for granted.