Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2001 13:38:37 +0300 (EEST)
From:      Maxim Sobolev <sobomax@mail-in.net>
To:        ernst@jollem.com, jdp@polstra.com
Cc:        ports@FreeBSD.ORG, trevor@jpj.net
Subject:   =?ISO-8859-1?Q?Re:_Supporting_pkg-plist.gz_=3F?=
Message-ID:  <200106021038.f52AcXo50376@mail.uic-in.net>
In-Reply-To: <20010601225706.A36653@c187104187.telekabel.chello.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Jun 2001 22:57:06 +0200, Ernst de Haan wrote:
> Heya John,
> 
> > That would be me. :-) I don't think it's worth pursuing, at least not
> > for pkg-plist files.  I looked at my ports tree, which is just a few
> > days old.  It contains 4894 pkg-plist files.  Of those, 3479 (71%)
> > can't be compressed at all.  The reason is that their sizes are 1024
> > bytes or less.  That is the default fragment size (smallest unit of
> > allocation) in UFS filesystems, which means that any file from 1-1024
> > bytes in size will use the same amount of space on the disk.  You
> > could compress each of those files by a factor of 10 without freeing
> > up a single block on your disk.
> > 
> > The sum total of all the pkg-plist files is only 22 MB, which isn't
> > worth walking around the corner to save.  Megabytes ain't what they
> > used to be, you know. :-)
> 
> You're right :)
> 
> Wow, 300K would be more than 1% of that ports tree then. JDK 1.2 is *really*
> bloated, and it's getting worse, since JDK 1.3 and JDK 1.4 are each quite a
> lot bigger than the previous versions! :-/
> 
> I guess I should indeed have the pkg-plist generated from the Makefile at
> install time, as Trevor suggested. :)

Actually we could save much more disk space by collapsing
one-line pkg-comment files into either pkg-descr or Makefile
[bikeshed pending]. This way we could free about 5MB
(5,000 files * 1,024 bytes wasted per file) w/o any significant
disadvantage.

-Maxim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106021038.f52AcXo50376>