[Zlib-devel] crc32 big/little endian

Török Edwin edwintorok at gmail.com
Wed Apr 21 12:49:04 EDT 2010


On 04/21/2010 06:42 PM, Mark Adler wrote:
> 
> (It's good we're having this discussion, because I just noticed that really the tables really only need to be four bytes per entry, not eight, so those numbers could all be cut in half.  On the other hand, it may be faster for the machine to access the native word size in the array when 64 bits.  On the other hand, the table would take less cache space if it were half the size.  Any opinions on that?  Should we force the tables to use a four-byte integer type?)

My opinion on these matters is that you should always benchmark it.
Preferably on more than one CPU.

Unless someone beats me to it I'll write a short benchmark code and
report results.

Best regards,
--Edwin




More information about the Zlib-devel mailing list