flat_collections

Crates.ioflat_collections
lib.rsflat_collections
version0.2.0
sourcesrc
created_at2024-09-13 11:01:52.977796
updated_at2024-09-13 12:34:18.413436
descriptionLightweight and memory-efficient associative data structures.
homepage
repository
max_upload_size
id1373559
size13,906
Leonid Kostarev (leokostarev)

documentation

README

Flat Collections

A library that provides lightweight and memory-efficient associative data structures.

Asymptotics:

operation average worst best
lookup O(logn) O(logn) O(logn)
insert O(n) O(n) O(1)
remove O(n) O(n) O(1)

Insert and remove work in O(1) when dealing with last element.

Types:

  • FlatMap - mutable map, backed by Vec
  • FlatSet - mutable set, backed by FlatMap
Commit count: 0

cargo fmt