in reply to Measurement of physical memory
Arrays generally take up 4 (or 8, on 64 bit systems) bytes times the highest array index it has been since the last time it was undef'd as a single contiguous chunk. (Though it might take up to 20% more, depending on how the array grew) Then tack on about 40 bytes of overhead.
Hashes are odd, and it depends on how they grew and how many buckets they have. hv.c and hc.h are left as an exercise for the reader if you really want to know.
|
|---|