Skip to main content

Crate dambi

Crate dambi 

Source
Expand description

Single-threaded (!Send + !Sync) primitives.

Bytes / BytesMut use a Cell-based refcount instead of Arc, so cloning is one cache-line bump instead of an atomic RMW. The trade-off is that every consumer of these buffers must live on the same thread — the model used by per-thread io_uring reactors.

Sibling primitives (LocalCell, AlwaysInit, Slab, MmapSlab, SlotId, InlineFuture, channel) follow the same paradigm: thread-pinned, no atomics, no cross-core sharing. dambi pulls them together as the storage layer for any shared-nothing runtime.

Modules§

channel

Structs§

AlwaysInit
ByteBuffer
ByteBufferMut
Bytes
BytesMut
InlineFuture
LateBound
LiveKey
LocalCell
MmapSlab
Slab
SlotGen
SlotId
WakerSet

Traits§

Buf
BufMut