]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common, performance: Created special function for calculating CRC for data that conta...
authorAdam Kupczyk <akupczyk@mirantis.com>
Mon, 14 Nov 2016 13:55:28 +0000 (14:55 +0100)
committerAdam Kupczyk <akupczyk@mirantis.com>
Mon, 8 May 2017 08:25:11 +0000 (10:25 +0200)
commit172fae2291d0308a5566195ea758f73ed640ade1
tree7c1a9511ad5e80e1b01a4bd399ac5a24fdf70545
parent916c5e3332058172d7ea2c0e3cde393ae17e03e0
common, performance: Created special function for calculating CRC for data that contains all zeros.
Expected amount of operations is 'count of 1s in length' * 16. Generally is O(log(length)).
Added test for performance comparision of "0" crc.
Added test to evaluate single crc calculation time.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
src/common/crc32c.cc
src/common/crc32c_intel_fast.c
src/include/crc32c.h
src/test/bufferlist.cc
src/test/common/test_crc32c.cc