Crates.io | halfbrown |
lib.rs | halfbrown |
version | 0.2.5 |
source | src |
created_at | 2019-04-18 21:12:09.840047 |
updated_at | 2024-03-05 07:22:34.543601 |
description | Multi backend HashMap for higher performance on different key space sizes |
homepage | |
repository | https://github.com/Licenser/halfbrown |
max_upload_size | |
id | 128732 |
size | 145,525 |
Hashmap implementation that dynamically switches from a vector based backend to a hashbrown based backend as the number of keys grows
Note: The heavy lifting in this is done in hashbrown, and the docs and API are copied from them.
Halfbrown, is a hashmap implementation that uses two backends to optimize for different cernairos:
For less then 32 key value pairs it uses a dumb vector based map implementation. This trades the need to iterator through the vector for not having to hash strings on lookup or inserts.
For more then 32 elements it upgrades the map to aq hashbrown base map to account for longer itteration times.
halfbrown itself is licensed under either of
at your option.
Code / docs copied from hashbrown are obviously licensed under their License.