Expand description
The Horribly Unsafe Buffer Structure.
A Data Structure that allows for fast access to pre-allocated data in chunks and allows read-access to all currently comitted chunks in one call.
This is not a general ourpose data structure, if you attempt it to use it as such, it might yield terrible performance. This crate was made for slow-ticking game loops, so that one tick every 20ms or so can easily read hundreds of thousands of items with two atomic operations. Refer to Hubs to get started.
Structs§
- Chunk
- A Chunk of Data.
- Chunk
Block - A Block of Chunks
- Hubs
- The Hubs data structure.
A
Hubs
holds a list ofChunk
s. EachChunk
contains an array of values ofT
. - Hubs
Consumer - The consumer side of the Hubs.
- Hubs
Producer - The producer side of the Hubs.
- Hubs
Write Access - Some sort of write guard for a single chunk.
Traits§
- Hubs
Initializer - Trait used to fill the empty hubs with default data upon creation. See Hubs::new_default as an alternative Do not be afraid to implement this type, since it is used only once upon initalization.