Skip to content

Commit cb8886f

Browse files
authored
perf: lock-free reads (#10)
* perf: lock-free reads * cleanup * test * fix * fixty * nit * impls * nit * clean+comments * name * cleanups * docs * chore: skip versioning if not copy * Revert "chore: skip versioning if not copy" This reverts commit 79bc7b7. * consts * perf: cold path
1 parent 27c0c76 commit cb8886f

2 files changed

Lines changed: 271 additions & 63 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ with predictable memory usage and minimal overhead.
99
## Features
1010

1111
- **Fixed size**: Memory is allocated once at creation time
12-
- **Lock-free reads**: Uses atomic operations for thread-safe access without blocking
12+
- **Lock-free reads**: For types that don't require drop, reads use a seqlock pattern
13+
that never acquires a lock. Other types fall back to a CAS-based lock
1314
- **Zero dependencies** (optional `rapidhash` for faster hashing)
1415
- **`no_std` compatible** (with `alloc`)
1516
- **Static initialization**: Create caches at compile time with the `static_cache!` macro

0 commit comments

Comments
 (0)