Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Building a small perl

by awy (Acolyte)
on Mar 21, 2009 at 19:47 UTC ( #752286=note: print w/replies, xml ) Need Help??

in reply to Re: Building a small perl
in thread Building a small perl

I already have some reasonably good data about the size of the complied perl code (not the native executable) and how much of it is ours and how much comes from CPAN, etc.; using Devel::Size & Devel::Size::Report. With this analysis it is clear that most of this is our own code. And I really am talking about the size of the compiled code, not data.

Actually, changing the build options did make a big difference. I think excluding threading was the big win. Altogether those options, coupled with a switch to 5.10 from 5.8, saved about 30%. But even as it stands, the in-memory image include a lot of overhead just for the filenames and module names: about one instance of each of those strings for each executable line of code in the source files.

Replies are listed 'Best First'.
Re^3: Building a small perl
by syphilis (Archbishop) on Mar 21, 2009 at 23:09 UTC
    I think excluding threading was the big win

    Yes, you want to stick with that one.

    a switch to 5.10 from 5.8, saved about 30%

    I think a switch back to 5.6 will also provide a further significant reduction (untested). You could even go further back, if you like - though the further back you go the more likely it becomes that you'll have to make amendments to the code you want to run.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-07-02 14:53 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (103 votes). Check out past polls.