Crate hubs

Source
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.
ChunkBlock
A Block of Chunks
Hubs
The Hubs data structure. A Hubs holds a list of Chunks. Each Chunk contains an array of values of T.
HubsConsumer
The consumer side of the Hubs.
HubsProducer
The producer side of the Hubs.
HubsWriteAccess
Some sort of write guard for a single chunk.

Traits§

HubsInitializer
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.