Skip to content

Switch to boost-crc for checksum computation#8

Merged
polymerizedsage merged 1 commit intomainfrom
sage/boost-crc
Jan 10, 2025
Merged

Switch to boost-crc for checksum computation#8
polymerizedsage merged 1 commit intomainfrom
sage/boost-crc

Conversation

@polymerizedsage
Copy link
Contributor

Addresses #7 . This does change the parameters of the CRC function to the defaults for boost crc16. I figure we arent particularly picky about what variant we are using.

Benchmarked by measuring the average time to calculate the CRC16 for a NDTP broadband packet with 1000 12-bit samples from one channel (1526 bytes). Benchmarks were run 128000 iterations to get an average execution time.
Old implementation: ~85 us per packet
Boost implementation: ~5.12 us per packet

Tests were run locally on Intel i9-13900H

Copy link
Contributor

@gilbert-sci gilbert-sci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good find!

@polymerizedsage polymerizedsage merged commit 0c545b8 into main Jan 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments