ChunkBuffer
darkforest-core
module: cluster
since v0.1.0-alpha
Signature
rust
pub struct ChunkBuffer { buffer: Vec<u8>, capacity: usize }
Overview
Pinned memory transmission buffer for streaming partial gradient shards over socket descriptors.
Invariants & Design Principles
- Invariant: Zero reallocation during ring iterations.
Usage Example
rust
let chunk = ChunkBuffer::with_capacity(65536);