|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
09-05-2006 20:50
I have a question about lists. I'm sure there are probably better ways to handle what I'm doing, but I have player information during a card game handled by 3 lists: one holds a key for each player, another the amount each player has bet, and another holds a separate integer for each player. Would it be any better for me to use a strided list with 24 items than 3 separate lists? I'm hitting the ceiling on memory, and need to decide if I can streamline or if I need to break out some of the functions to another script. Thanks, Baron H. PS Strife, if you want to see some lousy code and show how much you can optimize, I've got a great piece to show off your skills 
|
|
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
|
09-05-2006 20:57
You can try it both ways and use llGetFreeMemory to see the comparison. Just use a small test script.
If you are hitting the memory ceiling, I'd suggest breaking it up, as you add list entries it will expand and crash if you're not careful.
BTW - IMHO lists suck lemons
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
09-05-2006 21:45
just remember, getfreememory doesnt account for memory freed after being used. Also, I have a script that runs four 50 element lists with no memory issues.
|