"tar -c|gzip" faster than "tar -cz"?!?
Matthew Dillon
dillon at apollo.backplane.com
Fri Oct 13 11:54:23 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
I very vaguely remember someone mentioning assembly optimized code
for our libz, or something... I don't remember precisely. I think
my response was along the lines of "as long as a C version always
works, knock yourself out".
-Matt
More information about the freebsd-hackers
mailing list