speed up crc computation by migrating to crc-fast#497
Draft
onur-ozkan wants to merge 6 commits into
Draft
Conversation
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Signed-off-by: Onur Özkan <work@onurozkan.dev>
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Onur Özkan <work@onurozkan.dev>
Signed-off-by: Onur Özkan <work@onurozkan.dev>
onur-ozkan
force-pushed
the
migrate-to-crc-fast
branch
from
May 30, 2026 14:35
46006d7 to
35657e0
Compare
Keeps build-dependency features separate from embedded target features. Signed-off-by: Onur Özkan <work@onurozkan.dev>
Bindgen runs on the host while generating MAVLink code where std is always available. Signed-off-by: Onur Özkan <work@onurozkan.dev>
onur-ozkan
marked this pull request as ready for review
June 5, 2026 17:09
onur-ozkan
marked this pull request as draft
June 5, 2026 19:13
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.
A basic benchmark comparison I ran on an RP5:
So we get a good amount of speed simply by replacing the dependency.
Note that
crc-fastis not only a faster CRC implementation but it is also more widely used. According to crates.io, as of today, it has over 18 million more downloads thancrc-any.Blocked by: awesomized/crc-fast-rust#49