[checksum] Switch to a faster implementation of crc32
This commit is contained in:
parent
93b983aac6
commit
f2448b17ad
@ -35,7 +35,7 @@ crc32c::append(void const *buffer, unsigned len)
|
||||
{
|
||||
uint32_t const powers = 0x1EDC6F41;
|
||||
|
||||
boost::crc_basic<32> crc(powers, 0xffffffff, 0, true, true);
|
||||
boost::crc_optimal<32, powers, 0xffffffff, 0, true, true> crc;
|
||||
crc.process_bytes(buffer, len);
|
||||
sum_ = crc.checksum();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user