README.686 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. This is a patched version of zlib, modified to use
  2. Pentium-Pro-optimized assembly code in the deflation algorithm. The
  3. files changed/added by this patch are:
  4. README.686
  5. match.S
  6. The speedup that this patch provides varies, depending on whether the
  7. compiler used to build the original version of zlib falls afoul of the
  8. PPro's speed traps. My own tests show a speedup of around 10-20% at
  9. the default compression level, and 20-30% using -9, against a version
  10. compiled using gcc 2.7.2.3. Your mileage may vary.
  11. Note that this code has been tailored for the PPro/PII in particular,
  12. and will not perform particuarly well on a Pentium.
  13. If you are using an assembler other than GNU as, you will have to
  14. translate match.S to use your assembler's syntax. (Have fun.)
  15. Brian Raiter
  16. breadbox@muppetlabs.com
  17. April, 1998
  18. Added for zlib 1.1.3:
  19. The patches come from
  20. http://www.muppetlabs.com/~breadbox/software/assembly.html
  21. To compile zlib with this asm file, copy match.S to the zlib directory
  22. then do:
  23. CFLAGS="-O3 -DASMV" ./configure
  24. make OBJA=match.o
  25. Update:
  26. I've been ignoring these assembly routines for years, believing that
  27. gcc's generated code had caught up with it sometime around gcc 2.95
  28. and the major rearchitecting of the Pentium 4. However, I recently
  29. learned that, despite what I believed, this code still has some life
  30. in it. On the Pentium 4 and AMD64 chips, it continues to run about 8%
  31. faster than the code produced by gcc 4.1.
  32. In acknowledgement of its continuing usefulness, I've altered the
  33. license to match that of the rest of zlib. Share and Enjoy!
  34. Brian Raiter
  35. breadbox@muppetlabs.com
  36. April, 2007