reft-light

Crates.ioreft-light
lib.rsreft-light
version0.3.1
created_at2025-05-26 21:44:18.300602+00
updated_at2025-05-30 22:29:21.115149+00
descriptionA concurrency primitive for high concurrency reads over a single-writer data structure.
homepage
repositoryhttps://github.com/triblespace/reft-light.git
max_upload_size
id1690294
size87,020
(somethingelseentirely)

documentation

README

Codecov Crates.io Documentation

This is a feature-limited version of the original left-right library.

The original library makes tradeoffs to achieve high performance at the cost of somewhat convoluted semantics, which makes it difficult to use with datastructures that have side effects like writing to a file. This library is designed to be simpler to use, with a focus on correctness and ease of use, while still providing a high level of concurrency for reads. It is not intended to be a drop-in replacement for the original library, but rather a simpler alternative that can be used in cases where the original library's performance is not necessary.

left-right

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.

Commit count: 0

cargo fmt