3 releases

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

#991 in Concurrency

Download history 4935/week @ 2024-03-14 4296/week @ 2024-03-21 5198/week @ 2024-03-28 3794/week @ 2024-04-04 4174/week @ 2024-04-11 4192/week @ 2024-04-18 3109/week @ 2024-04-25 2473/week @ 2024-05-02 2961/week @ 2024-05-09 2862/week @ 2024-05-16 1919/week @ 2024-05-23 945/week @ 2024-05-30 853/week @ 2024-06-06 852/week @ 2024-06-13 747/week @ 2024-06-20 610/week @ 2024-06-27

3,340 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