#thread #adder #accumulator #long-adder

hytra

Datastructure for fast multi-threaded updates

3 releases

0.1.2 Mar 19, 2021
0.1.1 Mar 18, 2021
0.1.0 Mar 18, 2021

#513 in Concurrency

Download history 4479/week @ 2023-11-30 4809/week @ 2023-12-07 4108/week @ 2023-12-14 5251/week @ 2023-12-21 3606/week @ 2023-12-28 5387/week @ 2024-01-04 5384/week @ 2024-01-11 6669/week @ 2024-01-18 5604/week @ 2024-01-25 7031/week @ 2024-02-01 1703/week @ 2024-02-08 2130/week @ 2024-02-15 5489/week @ 2024-02-22 4597/week @ 2024-02-29 4268/week @ 2024-03-07 4033/week @ 2024-03-14

18,847 downloads per month
Used in latte-cli

MIT/Apache

11KB
78 lines

hytra

Build Status Crates.io

A beast that eats your data from many threads.

This library provides the TrAcc type, which allows you to accumulate data in a single logical variable at maximum performance: each thread uses its own copy of the data, which removes conention slowdown.

Hytra has been inspired by Java's LongAccumulator, DoubleAccumulator, LongAdder and DoubleAdder.

Documentation

Minimum Rust version

This crate's minimum supported Rust version (MSRV) is 1.36.0.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~30K SLoC