"tar -c|gzip" faster than "tar -cz"?!?

Joerg Sonnenberger joerg at britannica.bec.de
Fri Oct 13 11:12:55 PDT 2006


On Fri, Oct 13, 2006 at 03:45:34PM +0200, Oliver Fromme wrote:
> Meanwhile I had a quick look at the code:  gzip uses some
> optimized assembler code (for x86 and 680x0), while libz
> doesn't have such a thing.  Maybe that's the reason why
> gzip is noticeably faster.

I'm not sure what happened in the mean time, but when I did the tests in
2004, libz was faster. *sigh* The assembly doesn't seem to help much, at
least not the longest_match version. Might be a good idea to look at
crc32, but I don't have the time now :-(

Joerg


More information about the freebsd-hackers mailing list