Which tool should I use for finding out my memory allocation in Perl?
Posted
by Colin Newell
on Stack Overflow
See other posts from Stack Overflow
or by Colin Newell
Published on 2010-06-09T14:28:35Z
Indexed on
2010/06/09
14:32 UTC
Read the original article
Hit count: 214
I've slurped in a big file using File::Slurp but given the size of the file I can see that I must have it in memory twice or perhaps it's getting inflated by being turned into 16 bit unicode. How can I best diagnose that sort of a problem in Perl?
The file I pulled in is 800mb in size and my perl process that's analysing that data has roughly 1.6gb allocated at runtime.
I realise that I may be wrong about my reason for the problem but I'm not sure the most efficient way to prove/disprove my theory.
© Stack Overflow or respective owner