2 unstable releases

0.2.0 Nov 29, 2020
0.1.0 May 5, 2020

#433 in #concurrency

Download history 2/week @ 2023-12-18 3/week @ 2023-12-25 18/week @ 2024-01-01 14/week @ 2024-01-08 33/week @ 2024-01-15 44/week @ 2024-01-22 8/week @ 2024-01-29 8/week @ 2024-02-05 18/week @ 2024-02-12 25/week @ 2024-02-19 57/week @ 2024-02-26 35/week @ 2024-03-04 116/week @ 2024-03-11 46/week @ 2024-03-18

256 downloads per month
Used in 3 crates

MIT/Apache

10KB
118 lines

Codecov Crates.io Documentation

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 accessed 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

~1.5MB
~33K SLoC