Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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.


Comment on Re: Minimal Perl

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2016-05-31 07:02 GMT
Find Nodes?
    Voting Booth?