Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: module installation size

by marto (Cardinal)
on May 11, 2018 at 11:18 UTC ( [id://1214377]=note: print w/replies, xml ) Need Help??


in reply to Re: module installation size
in thread module installation size

Your link doesn't go to a specific thread. Are you talking about minicpan?

Replies are listed 'Best First'.
Re^3: module installation size ( 5x tarball? up to 33x tarball?)
by Anonymous Monk on May 14, 2018 at 21:27 UTC

    Now that I am not away from keyboard I can elaborate

    I'm talking about a fat distribution :) ex a strawberryperl , stock distribution is only 108.3 MB tarball, 335mb(357mb on disk), only ~130mb of which is perl , 100mb is perl modules (core plus 472), and 221MB for mingw/libs...

    So that is 100mb module to 221mb dependencies, or 1:2

    Or 108.3 MB compressed to / 335 uncompressed, or 1:3

    If a dummy generates both html and manpages (  perl -V:"install.*" ) then the size almost doubles :)(its all wasted MB for me, )

    A mingw/msys dev environment might be another 389MB

    compared to 1-2-3GB for minicpan size (it grows), and when a regular user installs bunches and bunches of module on top, short of installing all of minicpan (1-2-3GB), its only about 500MB

    A snapshot i took a few years ago listed 7789 packages , which translated to 1039 distributions , or 124MB worth of cpan distribution tarballs (including dual lived),

    It installs to 508MB. 110Mb vendor, 30.7MB lib, 367MB site

    So installed size might be 3x or 4x bigger than the size of the tarball but actual average might actually be 2x to 3x actualllyyyyyy

    A smaller example , worst case of balooning of sorts

    442kb for XML-LibXML-2.0014.tar.gz uncompressed size 1.90MB size uncompressed size on disk 2.42MB after building/make dance its 3.52 MB (3,693,052 bytes) / 4.16 MB (4,370,432 bytes) after installation its 663 KB / 760KB plus 25MB in prerequisites ( libxml2mingw ) 560kb includes 8.09MB dll/exe (the minimal true prerequisite) 8.14MB libs (.a) 7.51MB share (docs...)

    So 442kb tarball / expands to 1.90MB size / builds to 3.52 MB / installs to 663 KB

    So 442kb tarball / expands to 1.90MB size / builds to 3.52 MB / installs to 8.09MB+ 663 KB

    So 442kb tarball / installs to 8.09MB+ 663 KB

    So 442KB/9MB or 1:20 balooning ratio

    Or worse yet 25MB/760KB = 32.89

    So 3x/4x average, 20x or worst case without pod generated manpages+html, or maybe 33x worst case

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-16 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found