2 unstable releases
0.2.0 | Nov 29, 2020 |
---|---|
0.1.0 | May 5, 2020 |
#80 in #multithreading
219 downloads per month
Used in 3 crates
9KB
118 lines
Left-right is a concurrency primitive for high concurrency reads over a single-writer data structure. The primitive keeps two copies of the backing data structure, one that is accessed by readers, and one that is access by the (single) writer. This enables all reads to proceed in parallel with minimal coordination, and shifts the coordination overhead to the writer. In the absence of writes, reads scale linearly with the number of cores.
lib.rs
:
This crate provides procedural derive macros to simplify the usage of evmap
.
Currently, only #[derive(ShallowCopy)]
is supported; see below.
Dependencies
~0.6–1MB
~26K SLoC