procmail
[Top] [All Lists]

Sizes of binaries (was Re: nul detection)

1997-12-05 01:32:25
On 05 Dec 1997 09:01:48 +0200, <jari(_dot_)aalto(_at_)poboxes(_dot_)com> wrote:
Have anyone looked at the binary sizes lately :-) I'm a real perl
[lover], but now I understand why I should use it with great care from
inside procmail.
-r-xr-xr-x   1 bin        bin         131072 Aug 21  1996 /usr/bin/awk
-r-xr-xr-x   3 bin        bin         245760 Jun 10  1996 /usr/bin/grep
-r-xr-xr-x   1 bin        bin         262144 Jun 10  1996 /usr/bin/sed
-r-xr-xr-x   1 bin        bin         544768 Jun 10  1996 
/usr/contrib/bin/perl
-rwxr-xr-x   1 root       nms         822232 Aug 25 13:58 
/opt/local/bin/perl5.00401

This is not very typical. BTW, I also find myself stumbling over the
stupid limitations of classic awk all the time, so you should at least
check the size of nawk and/or gawk in case you happen to need them,
too.

Here's the situation on an Alpha:

 $ type -all grep sed awk gawk nawk perl | cut -d' ' -f3 | xargs ls -l
 -rwxr-xr-x   2 bin      bin        155648 Nov 16  1996 /usr/bin/awk
 -rwxr-xr-x   1 bin      bin        221184 Nov 16  1996 /usr/bin/gawk
 -rwxr-xr-x   2 bin      bin         32768 Nov 16  1996 /usr/bin/grep
 -rwxr-xr-x   2 bin      bin        155648 Nov 16  1996 /usr/bin/nawk
 -rwxr-xr-x   1 bin      bin         49152 Nov 16  1996 /usr/bin/sed
 lrwxrwxrwx   1 root     system          4 Sep 28 14:25 /usr/local/bin/awk -> 
gawk
 -rwxr-xr-x   2 root     system     311296 Jan 27  1997 /usr/local/bin/gawk
 -rwxr-xr-x   3 root     system    1196032 Sep 14  1996 /usr/local/bin/perl
 -rwxr-xr-x   2 sjpaavol system     958464 Nov  2 16:34 
/usr/local/contrib/bin/perl
 -rwxr-xr-x   3 reriksso system     114688 Oct 20  1996 
/usr/local/contrib/gnu/bin/grep

You should expect to see a grep smaller than sed, which is smaller
than awk, which is +much+ smaller than Perl, on most systems.
Obviously, the GNU versions, while nice, are often rather obese; you
should perhaps not expect anything in particular about locally
installed or contributed versions. And it's worth noting for the
record that if Procmail is running on a dedicated mail host, it
probably doesn't even have the goodies installed, just the boring
standard versions.

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

<Prev in Thread] Current Thread [Next in Thread>