Depends on your application. I would guess that (code) size of your own code should not be a problem (if you haven't developed it for years). It is either your data or the combined size of many CPAN-modules. Your own data you can minimize by removing global vars (if any), not having big arrays in memory, things you probably thought of yourself already.

CPAN modules are probably not built with memory efficiency in mind. You might be able to switch out modules with comparable functionality but smaller footprint or more importantly a smaller list of dependencies (or even replace them with your own code). But for that to work you should know the size of the cpan-modules you use. Something like perl -e 'use somemodule; while (1) {}' to check the size with 'ps' or 'top' might be sufficient to give you an idea of the base memory need of a module with dependencies. Better might be some test code with a typical use case

Some modules might have reserved space for caches. Check their documentation or their code


In reply to Re: Building a small perl by jethro
in thread Building a small perl by awy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.