Crates.io | left-right |
lib.rs | left-right |
version | 0.11.5 |
source | src |
created_at | 2020-11-22 05:30:49.095495 |
updated_at | 2022-06-23 03:38:43.741535 |
description | A concurrency primitive for high concurrency reads over a single-writer data structure. |
homepage | |
repository | https://github.com/jonhoo/left-right.git |
max_upload_size | |
id | 314928 |
size | 92,152 |
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.