Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Each stored row has an overhead of 50% - half the memory being used by this application is array overhead! I have tried packing and unpacking the data to store it as scalars, but this causes performance to be even slower than without the cache. TIEing the arrays to disk would defeat the purpose of the cache. So - is there any way at all to reduce the overhead of these arrays that doesn't involve pack and unpack or deleting from the cache (which I'm already doing)?Array ref 440 bytes (overhead: 232 bytes, 52.73%) Scalar 56 bytes Scalar 56 bytes Scalar 24 bytes Scalar 24 bytes Scalar 24 bytes Scalar 24 bytes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bit by overhead
by BrowserUk (Patriarch) on Jan 06, 2011 at 18:12 UTC | |
by Anonymous Monk on Jan 06, 2011 at 18:31 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2011 at 18:37 UTC | |
by Anonymous Monk on Jan 06, 2011 at 19:34 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2011 at 20:01 UTC | |
| |
|
Re: bit by overhead
by afoken (Chancellor) on Jan 06, 2011 at 16:57 UTC | |
by Anonymous Monk on Jan 06, 2011 at 17:00 UTC | |
by afoken (Chancellor) on Jan 06, 2011 at 17:13 UTC | |
|
Re: bit by overhead
by ikegami (Patriarch) on Jan 06, 2011 at 17:30 UTC | |
by ELISHEVA (Prior) on Jan 06, 2011 at 18:26 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2011 at 19:03 UTC | |
by ikegami (Patriarch) on Jan 06, 2011 at 20:49 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2011 at 20:51 UTC | |
| |
by ikegami (Patriarch) on Jan 06, 2011 at 18:50 UTC |