Crates.io | densevec |
lib.rs | densevec |
version | 0.5.1 |
source | src |
created_at | 2018-03-16 19:05:42.754299 |
updated_at | 2022-07-07 12:06:00.867817 |
description | Map like collection with usize indices that stores values contiguosly |
homepage | https://github.com/arturoc/densevec-rs |
repository | https://github.com/arturoc/densevec-rs |
max_upload_size | |
id | 56036 |
size | 61,969 |
Map like collection with usize indices that stores values contiguosly in memory so iterating through them is as fast as iterating a vector.
The index uses a sparse vector so using very high numbers will lead to high memory usage
The API mimics that of HashMap and implements all it's features + some methods that are useful in this case like get_unchecked(_mut).