I have a large array of almost 1200 indices. Each one is a string, and they vary widely in length. During my script's execution most of them are not needed, but there are a few times when most of them will get used. I'm trying to find out if I need to break up this array and only load certain parts when I need them... which will mean a bit of code restructuring.
So my question is two part. At what point do I start to concern myself with the memory requirements of my scripts, and how do I calculate that? Is there possibly a simple formula that I can use to calculate the size of an array, even if it's not an exact answer? Like 1 byte per character in the string, plus one for each character in the key (I use associative keys)?