Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Memory

Ananas Merlin
Registered User
Join date: 8 Dec 2008
Posts: 1
02-16-2009 15:06
Hi all,

I am a noob scripter on a mission to make a great greeter. Now i got a problem with that stack-head-collision. So I split my script in 2 communication scripts :) i was prowed of myself when it finally did work.
But now it works very slow prob because it's to big for what it is.

But being a noob as I am, i don't know what eats all that memory. Is there a way to know witch functions need how many memory and how big my script is?

So here is the question short and clear:

Is there a way to find out how big my script is or how big a part of my script is?


Ps:
What are commen things noobs do wrong so there script becomes very big?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-16-2009 15:50
From: Ananas Merlin

Is there a way to find out how big my script is or how big a part of my script is?


Ps:
What are commen things noobs do wrong so there script becomes very big?

I'll answer the ps first: EVERYTHING which is fine, that's how we learn.

First question is easy, just post your code here and we will help spot the problem bit and maybe give some tips to make it more efficient.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
02-16-2009 16:32
The major thing I can think of, that is causing a stack-heap with a greeter, is if you are trying to store who you have greeted and running a check to not greet them again. There are some ways around this, make a script that JUST holds the peoples names or keys and use linked messages to find out if they have been greeted, and a critical part is to set a timer, to clear the list after so many people have been greeted.

Also make sure your script is running mono, and it will be less likely to become full on memory. Any time you want to store a large amount of data in a list (keys, names, positions, rotations...) unless you know the exact number or have a very good idea of how many will be store, always store them in a separate script then your "control" script. :)