mrhooray / crc-rs

Rust implementation of CRC(16, 32, 64) with support of various standards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Faster generation of CRC tables

kitlith opened this issue · comments

Wikipedia suggests that creating the tables can be done quicker by only computing for the powers of two, and then generating every other value by xoring the powers of two.

Whether or not this makes a big enough difference to matter is another question entirely, though.

don't see table generation being the limiting factor but feel free to take a stab if you'd like to

Yeah, I don't really think it's a limiting factor, either.