NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/50638: Extreme slowness on loading gzipped kernels on old CPUs



On Sun, Jan 10, 2016 at 05:40:00PM +0000, Izumi Tsutsui wrote:
> (1) leave as is and use the dumb crc32() function (for small binary)
> (2) pull "DYNAMIC_CRC_TABLE" implementation from zlib into libkern/crc32.c
> (3) completely disable gunzip crc32() calculation in cread() function

Another option would be to use a version of what libarchive is using in
src/external/bsd/libarchive/dist/libarchive/archive_crc32.h. That
version is still pretty small.

Joerg


Home | Main Index | Thread Index | Old Index