|
MariaBeatriz Beck
Registered User
Join date: 2 Aug 2007
Posts: 10
|
12-28-2007 17:02
I have a script that populates a list with AV names, like a visitor detector list. I am using the function llGetFreeMemory() to detect the free heap memory space.
After the number of items on the list reach around X names, I am performing an mylist = []; , but the free memory remains the same. Any tips in how to manage memory allocation space?
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
12-28-2007 17:33
From: MariaBeatriz Beck I have a script that populates a list with AV names, like a visitor detector list. I am using the function llGetFreeMemory() to detect the free heap memory space.
After the number of items on the list reach around X names, I am performing an mylist = []; , but the free memory remains the same. Any tips in how to manage memory allocation space? Instead of just clearing one var, is it possible for you to do a llResetScript()?
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-28-2007 18:11
Yep, resetting the script is the only way to free up the memory.
_____________________
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
|
|
Wyatt Burton
Registered User
Join date: 11 Jan 2007
Posts: 49
|
12-28-2007 19:25
From: MariaBeatriz Beck I have a script that populates a list with AV names, like a visitor detector list. I am using the function llGetFreeMemory() to detect the free heap memory space.
After the number of items on the list reach around X names, I am performing an mylist = []; , but the free memory remains the same. Any tips in how to manage memory allocation space? If your list is inside a function then when you return from the function it will free the memory This way you dont have to reset your script.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-28-2007 19:52
From: Wyatt Burton If your list is inside a function then when you return from the function it will free the memory This way you dont have to reset your script. The memory is freed up but llGetFreeMemory() is still going to return the low water mark of available memory until the script is reset.
_____________________
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
|
|
MariaBeatriz Beck
Registered User
Join date: 2 Aug 2007
Posts: 10
|
Thanks All
12-28-2007 23:29
From: Jesse Barnett The memory is freed up but llGetFreeMemory() is still going to return the low water mark of available memory until the script is reset. Yes, I did a litle test script, and the memory is freed up.
|