Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: why the perl complied code takes more memory?

by rjt (Deacon)
on Mar 02, 2013 at 09:44 UTC ( #1021403=note: print w/replies, xml ) Need Help??

in reply to why the perl complied code takes more memory?

Your program is much too trivial to draw any conclusions about compiled Perl memory usage, and it's only a single data point, at that. You also need to look deeper into the OS memory to see how much of that is shared, vss, rss, etc. (and come with an understanding of what that means).

To more accurately test, you would need to have code that uses significant memory with each of the various (Perl) reference types, and independently test the effects of code size, module dependencies, XS/I::C code, and then you'd start to get an idea for your system.

My suggestion would be to not worry about it too much and focus on writing elegant memory- and CPU-efficient code. Your gains will almost certainly be much greater on that front.

  • Comment on Re: why the perl complied code takes more memory?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021403]
and snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-05-27 16:28 GMT
Find Nodes?
    Voting Booth?