reedsolomon

Reed-Solomon Erasure Coding in Haskell

http://github.com/NicolasT/reedsolomon

Version on this page:0.0.4.2
LTS Haskell 8.24:0.0.4.3
Stackage Nightly 2017-02-11:0.0.4.3
Latest on Hackage:0.0.4.3

See all snapshots reedsolomon appears in

MIT licensed by Nicolas Trangez
Maintained by [email protected]
This version can be pinned in stack with:reedsolomon-0.0.4.2@sha256:0acfa9b7425a5e7933a9706321f6d316644c6d79ce1983f9c5eed3e348e2ad8c,9362

Module documentation for 0.0.4.2

Reed-Solomon

Travis CI Circle CI Appveyor

Reed-Solomon Erasure Coding in Haskell, with speeds exceeding multiple GB/s/cpu core implemented in pure Haskell (and some SIMD C/assembler).

This is a Haskell port of the GolangReedSolomon library released by Klaus Post, wich is a port of the JavaReedSolomon library released by Backblaze, with some additional optimizations.

For an introduction on erasure coding, see the post on the Backblaze blog.

Package home: https://github.com/NicolasT/reedsolomon

Performance

Performance depends mainly on the number of parity shards. In rough terms, doubling the number of parity shards will double the encoding time.

Here are the throughput numbers with some different selections of data and parity shards. For reference each shard is 1MB random data, and 1 CPU core is used for encoding.

Example of performance on Intel(R) Core(TM) i7-4600U CPU @ 3.30GHz - 2 physical cores, 4 logical cores (note: /proc/cpuinfo mentions 2.10GHz only). The example uses 10 blocks with 16MB data each and 4 parity blocks.

Links

License

This code, as the original GolangReedSolomon and JavaReedSolomon is published under an MIT license. See LICENSE file for more information.