laziness, impatience, and hubris | |
PerlMonks |
Building a small perlby awy (Acolyte) |
on Mar 20, 2009 at 12:01 UTC ( [id://752003]=perlquestion: print w/replies, xml ) | Need Help?? |
awy has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to build a version of perl 5.10 that will have as small a memory footprint (both code and data) as possible. I want to run an existing perl application with a small memory budget. The application uses quite a bit of perl and CPAN stuff and typically has a memory footprint in the range 60-120MB on common platforms.
So far I have built perl with the following (possibly relevant) configure arguments: Are there any other simple suggestions? Or not so simple ones? I'd be prepared to go as far as modifying perl internals if it is likely to be useful. I found the following: oplines - make perl runtime 8% faster and smaller; Does anyone know if this made it into 5.10? I would guess not, given the date of the messages. Finally (for now) are there any generic tips for perl code to reduce the size of the in-memory (compiled) size? These could be general patterns, or processing techniques that one might apply when building the deployable application.
Back to
Seekers of Perl Wisdom
|
|