Repository navigation
perf(fec): accelerate GF multiply-add with SIMD - #330
Merged
Merged
Conversation
Process eight independent table lookups per loop iteration so the CPU can overlap their latency. This preserves the scalar fallback and exact field products while improving the release kernel median from 4.11 to 4.98 GB/s. Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
Signed-off-by: David Torcivia <david.torcivia@gmail.com>
davidtorcivia
force-pushed
the
codex/fec-nibble-kernel
branch
from
August 19, 2026 05:35
53aa86e to
7e8dc0f
Compare
Contributor
Author
|
Independent exact-head review at |
davidtorcivia
marked this pull request as ready for review
August 19, 2026 05:37
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.
Objective
Remove the GF(2^8) multiply-add CPU ceiling from FEC while preserving the frozen wire field and a safe scalar fallback.
Changes
Kernel measurements
Local Intel i5-13500, release, 1 KiB symbols:
Live WAN
Stacked with #329 on Hetzner Helsinki to Singapore, 191.8ms RTT, 5% bidirectional loss, exact 12 GiB object, eight rails:
mainFEC 103.456s (2.9% faster)main(2.3% lower)main(47.6% lower)The temporary CPX32 hosts exposed AVX2 and AVX-512; this change dispatched AVX2. Hetzner had no CAX capacity in fsn1, nbg1, or hel1, so NEON has cross-target/CI coverage but no runtime measurement in this PR.
Validation
cargo test -p vot-fec(31 passed, 2 measurement tests ignored)