Crates.io | hubs |
lib.rs | hubs |
version | 0.1.1 |
source | src |
created_at | 2021-08-11 15:02:48.074993 |
updated_at | 2021-08-11 15:19:42.407839 |
description | The horribly unsafe buffer structure |
homepage | https://amann.dev/projects/hubs/ |
repository | https://github.com/dwarfhack/hubs |
max_upload_size | |
id | 434791 |
size | 28,846 |
The Horribly Unsafe Buffer Structure
This crate uses unsafe
(as in the name).
It basically works but this code has not been used in production.
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 the docs to get started.