Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-09-19 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls