Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

List space

Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-19-2005 02:29
I've been approached about a sort of little database script which I want to run entirely in world rather than linking to an external source. The coding is fine, but obviously I'm going to be running lists, comparing things in lists etc.

Does anyone know if the list(s) take up the memory allocation of the script, even if assigned 'on the fly'? What is the memory limit? 48K rings a bell, but I might be wrong.

If names are about 14 characters long on average (OK, that is based on my name, and some guesswork) is that 14bytes or more or less when stored in a list as far as anyone knows?
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
01-19-2005 02:55
You get 16kB of stack space for your script (everything is stored on the stack), this includes the space for the script bytecode. Additionally, when passing data into and out of functions, it's copied on the stack again. For list work, your usable space considering the above ends up around 6kB. If you use globals (to avoid stack var passing) if your lucky you should be able to get 12kB, although that's fairly rare.

-Adam
_____________________
Co-Founder / Lead Developer
GigasSecondServer