From f2448b17ade3aed6d735f4e95290611986cc171f Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 21 Mar 2017 12:03:11 -0400 Subject: [PATCH] [checksum] Switch to a faster implementation of crc32 --- persistent-data/checksum.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistent-data/checksum.cc b/persistent-data/checksum.cc index b78f208..29f4634 100644 --- a/persistent-data/checksum.cc +++ b/persistent-data/checksum.cc @@ -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(); }