Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Minimal Perl

by tsee (Curate)
on Oct 31, 2006 at 19:00 UTC ( #581546=note: print w/ replies, xml ) Need Help??


in reply to Minimal Perl

There's something else I thought of which might help reduce the footprint and which didn't occurr to me when I wrote my last post.

You can remove the POD documentation or even all comments from the modules. Naturally, you can skip all .pod files. Removing the documentation et all can be done using Adam Kennedy's Perl::Squish module.

Apart from that, if you have some /tmp space during the run and aren't worrying too much about startup performance, you can put all modules into a .par archive which is nothing but a glorified .zip file. Then, before loading the modules, do a "use PAR '/path/to/your/par/files/*.par';". Of course, all modules required by PAR itself need to be accessible from outside such a .par distribution.

You can even combine these two steps by using the PAR::Filter::Squish module.

Steffen


Comment on Re: Minimal Perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2014-07-22 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (123 votes), past polls