Improve LTP performance: faster crc16 checksum and remove unnecessary memset#73
Open
zebastian wants to merge 1 commit intonasa-jpl:integrationfrom
Open
Improve LTP performance: faster crc16 checksum and remove unnecessary memset#73zebastian wants to merge 1 commit intonasa-jpl:integrationfrom
zebastian wants to merge 1 commit intonasa-jpl:integrationfrom
Conversation
… memset - sdrxn.c: Skip redundant memset in _sdrfetch DRAM path - Add slice-by-8 CRC16-X25 fast path under ENABLE_HIGH_SPEED Add ion_CRC16_1021_X25_slice() using an 8×256 lookup table to process 8 bytes per iteration, matching the existing CRC32 slice-by-16 pattern. Wire it into computeBufferCrc() and serializePrimaryBlock() behind the ENABLE_HIGH_SPEED guard. Profiling showed CRC16 consuming 56% of receiver daemon CPU in LTP benchmarks. With this change, 1 MB bundle throughput rises from 1,159 to 1,858 Mbps (+60%).
Author
|
note: the crc16 LUTs were generated with a python script
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Profiling showed CRC16 consuming 56% of receiver daemon CPU in LTP benchmarks. With this change, 1 MB bundle throughput rises from 1,159 to 1,858 Mbps (+60%).