indexmap-rs / indexmap

A hash table with consistent order and fast iteration; access items by key or sequence index
https://docs.rs/indexmap/
Other
1.67k stars 150 forks source link

Alow Mutating Entry keys and iterator keys #335

Closed epage closed 1 month ago

epage commented 1 month ago

See toml-rs/toml#765 for an example use case

Fixes #334

cuviper commented 1 month ago

See toml-rs/toml#765 for an example use case

Any performance numbers to share from that change?

epage commented 1 month ago

Machine has been pretty jittery though,. so using callgrind I get

This also cleaned up the code a lot.

cuviper commented 1 month ago

Thanks! I've published 2.3.0 with these changes.