Recently I
suggested using
miniperl instead of the regular
perl in a tight environment. Then I decided I'd better check exactly how much better this perl was in terms of disk space, and how much worse it was in terms of functionality. I was surprised by the answer to my first question:
% ls -l miniperl perl
-rwxr-xr-x 1 root root 150137 May 26 15:43 miniperl
-rwxr-xr-x 1 root root 59507 May 26 15:43 perl
That is, the full-featured perl is
smaller by almost 90k than something that was supposed to be a tighter version?
Of course, I said, miniperl's probably statically linked so the executable must be self-contained, but doesn't require libperl, right? Wrong, it turns out: ldd shows the two depend on the same libraries, so miniperl isn't so mini. What gives?
(All this is on Linux.)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.