tpircher-zz / pycrc

Free, easy to use Cyclic Redundancy Check (CRC) calculator and source code generator
https://pycrc.org
MIT License
169 stars 36 forks source link

Slicing-by-8 or slicing-by-4 support #3

Open stanhu opened 9 years ago

stanhu commented 9 years ago

pycrc could be even faster if it supported the slicing-by-8 or slicing-by-4 algorithms, which would just require additional tables to be generated:

https://matt.sh/redis-crcspeed http://create.stephan-brumme.com/crc32/

Is this something you would want pycrc to support?

tpircher-zz commented 9 years ago

Yes, I think pycrc should support this. I'm a bit busy right now, but I hope I can have a look into this in the not-so-distant future.

tpircher-zz commented 9 years ago

Just an update. An early preview is now in master on GitHub. This is still experimental, undocumented and brittle. It is known to work for crc-32, may break for other models and will definitely break for models such as crc-5, but I'm working on it.