When determining the optimum data structure, it is important to know how you will be accessing the data inside, but you have not given many hints as to that.
What are you building them from? How are you using them after? Do you search them? Use them like objects?
The content of arrays is important too. Maybe you can pack them, or concatenate the values into a single string, and split them back out on demand. If you've got way more CPU than memory available, maybe even compress the data. If you're just going to run out of memory regardless, then you have to start saving it to disk.
In reply to Re: array overhead
by SuicideJunkie
in thread array overhead
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |