#reed-solomon #codec #erasure #algorithm #encoding

reed-solomon-novelpoly

An implementation of a reed solomon code / encoder / decoder with complexity O(n lg(n))

6 releases (stable)

2.0.0 Jan 25, 2024
1.0.2 Sep 17, 2023
1.0.1 Aug 30, 2023
1.0.0 Mar 26, 2021
0.0.3 Mar 19, 2021

#61 in Algorithms

Download history 32868/week @ 2024-07-20 27410/week @ 2024-07-27 30760/week @ 2024-08-03 42850/week @ 2024-08-10 27290/week @ 2024-08-17 36510/week @ 2024-08-24 40955/week @ 2024-08-31 37180/week @ 2024-09-07 32991/week @ 2024-09-14 36426/week @ 2024-09-21 36575/week @ 2024-09-28 41157/week @ 2024-10-05 39638/week @ 2024-10-12 42218/week @ 2024-10-19 33108/week @ 2024-10-26 44236/week @ 2024-11-02

164,840 downloads per month
Used in 36 crates (3 directly)

Apache-2.0 AND MIT

110KB
2.5K SLoC

Rust 2.5K SLoC // 0.1% comments C 269 SLoC // 0.1% comments

reed-solomon-novelpoly

An implementation of Novel Polynomial Basis and its Application to Reed-Solomon Erasure Codes 1 2 3.

Runs encoding and reconstruction in O(n lg(n)). Note that for small number n there is a static offset due to a walsh transform over the full domain in reconstruction.

Goals

Be really fast for n > 100.

Benchmarking

For benchmarking the implementation against itself and the naive implementation, criterion is used.

cargo bench

Fuzzing

Currently honggfuzz is used.

Install cargo install cargo-hongg and run with:

cargo-hongg fuzz --bin <binary_name>

Dependencies

~0.8–1.8MB
~34K SLoC