home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / compress / 3816 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.4 KB  |  55 lines

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