onebuck

Crates.ioonebuck
lib.rsonebuck
version0.1.5
sourcesrc
created_at2024-08-20 23:27:44.540003
updated_at2024-08-26 21:55:33.875446
descriptionAn efficient unordered dynamically-sized data structure.
homepage
repositoryhttps://github.com/splurf/onebuck
max_upload_size
id1345866
size15,298
Evan Schwartzentruber (splurf)

documentation

README

onebuck

Crate

An efficient unordered dynamically-sized data structure.

Time Complexity

Method Time
get O(1)
insert O(1)
remove O(1)
grow O(k)
shrink O(k)
  • k - original capacity

Memory Fragmentation

  • Due to compaction on removal, this is essentially disregarded, resulting in incredibly fast iteration.

Features

  • atomic - uses std::sync::Arc instead of the default std::rc::Rc for thread safety.
  • clone - allows ValueIndex to be cloneable, allowing for greater versatility.
  • get (default) - Obtain a reference from the bucket at the indexed position.
Commit count: 0

cargo fmt