04-05-2006 22:56
One of the biggest problems in writing scripts in LSL has to do with memory fragmentation.

If you take a look at this thread you can see the effects of memory fragmentation, and how it can eat 50% of the scripts usable memory.

As LSL's memory handler sucks for letting this happen it would be really great if we had a function that would defragment the scripts memory and reset the value returned by llGetFreeMemory to the current free memory.

I don't care if this forces the script to sleep for 10 seconds. I'd gladly let my scripts sleep for 10 seconds if i could just get the memory deframented.

If that isn't possible defragmenting the local and global scopes should be possible; which is an acceptable alternative (as the compiler could supply the types for the variables in the scripts memory space in the global and local memory space).

Or this function could be limited so it could not be called from functions. I just want to be able to use the memory.

That said, when we get Mono, memory fragmentation will be a non issue. But that doesn't change the here and now. So how about it.

PS. How is Mono coming?
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey