GNU bug report logs - #67022
Gzip decompression can be 60% faster using zlib's CRC32

Previous Next

Package: gzip;

Reported by: Young Mo Kang <kym327 <at> gmail.com>

Date: Thu, 9 Nov 2023 17:42:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: wrotycz <wrotycz <at> wir.pl>
To: Adler, Mark <madler <at> alumni.caltech.edu>
Cc: 67022 <at> debbugs.gnu.org <67022 <at> debbugs.gnu.org>
Subject: bug#67022: Gzip decompression can be 60% faster using zlib's CRC32
Date: Thu, 14 Mar 2024 23:46:14 +0100
[Message part 1 (text/plain, inline)]
&gt; The paper on braided CRCs is in the zlib distribution: doc/crc-doc.1.0.pdf   Thanks for a tip, I read that and now it&#39;s bit clearer to me.    Maybe it is slightly faster, but I wouldn&#39;t bet dollars against nuts it&#39;s exact in my case as 7zip-crc also uses slice-by-8 algorithm and is actually faster.  Despite that the question is how do I use zlib crc32()? It doesn&#39;t give me correct result.   My &#39;rig&#39; is this:   ~~~  crc = -1  while (buffer, length = read_data()):      {      crc = crcfunc(crc, buffer, length)      }  crc = ~crc  ~~~   This doesn&#39;t work with `crc32_z();&#39;
[Message part 2 (text/html, inline)]

This bug report was last modified 100 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.