[checksum] Switch to a faster implementation of crc32

This commit is contained in:
Joe Thornber 2017-03-21 12:03:11 -04:00
parent 93b983aac6
commit f2448b17ad

View File

@ -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();
}