home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compression
- Path: sparky!uunet!mcsun!sunic!dkuug!daimi!protonen
- From: protonen@daimi.aau.dk (Lars J|dal)
- Subject: Re: compression of small files
- Message-ID: <1992Nov12.143323.9757@daimi.aau.dk>
- Keywords: small files 1024 bytes
- Sender: news@daimi.aau.dk
- Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
- References: <1992Nov11.210509.20715@cbnewsj.cb.att.com>
- Date: Thu, 12 Nov 92 14:33:23 GMT
- Lines: 42
-
- jef0@cbnewsj.cb.att.com (john.e.fetchko) writes:
-
- >Does anyone have information on any compression routines
- >that work well on the compression of small files ?
- > ^^^^^^^^^ ^^^^^^^^^^^
- >work well: means a good compression ratio, speed is unimportant.
- >small files: means 1024 bytes or less.
- >
- >Or would a file of such a size be too small to effectively compress ?
-
- I'm not sure what strategy you think of. If you are going to
- compress every file individually and keep them as individual
- files the answer to your question is: "Yes, they are too small."
- Most systems allocates disk space in chunks of 1KB or so, which
- means that even if the program can compress your 1023 bytes file
- down to 1 byte you won't save any disk space.
-
- Instead you can juxtapose the files to one big file (on Unix
- use 'ar') and compress the big file. This is a good idea if
- the files are of the same type (all english text, all .h files,
- all <your type>), because the compression program can take
- advantage of patterns that arise in several files.
- Or you can use an archiver which compress every file individually,
- but put the files in one archive. This again gives you one
- big file. If the files are generally unlike this is probably
- better than juxtaposing the files before compressing.
-
- >Thanks in Advance,
- >John Fetchko
- >...att!attmail!jfetchko
- >(908) 457 - 6429
-
- Sorry if this does not help very much, but I hope to have given
- some general ideas.
-
- +--------------------------------------------------------------------------+
- | Lars J|dal | Q: What's the difference between a quantum |
- | email: protonen@daimi.aau.dk| mechanic and an automechanic? |
- | | A: A quantum mechanic can get his car into |
- | Aarhus University | the garage without opening the door. |
- | Denmark | -- David Kra |
- +--------------------------------------------------------------------------+
-