[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Associative array memory hogging



>I have written a script to load a large associative array--a 5 x ~18,000
>table (each entry is less than 5 bytes, using one of the columns as a key).
>The problem is that although the table itself uses about 350 K of disk
>space, to load it into memory I need to allocate over 6 MB of memory to
>MacPerl. (I have also written another script using s/// to perform the same
>search from the disk, but this is very very slow.)

I've also found that associative arrays take up a huge amount of memory.
750 entries of about 100 bytes each and a 50 byte key requires over 22
megabytes of memory.

Craig Anderson