Licenser/halfbrown

Multi backend HashMap for higher performance on different key space sizes

Rust

31

83 commits

updated Oct 5, 2025

See the code

README

Halfbrown HashMap   Build Status Windows Build Status Latest Version

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:

VecMap

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.

Hashbrown

For more then 32 elements it upgrades the map to aq hashbrown base map to account for longer itteration times.

License

halfbrown itself is licensed under either of

at your option.

Code / docs copied from hashbrown are obviously licensed under their License.

hacktoberfest

Licenser/halfbrown

Multi backend HashMap for higher performance on different key space sizes

Rust

31

83 commits

updated Oct 5, 2025

See the code

README

Halfbrown HashMap   Build Status Windows Build Status Latest Version

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:

VecMap

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.

Hashbrown

For more then 32 elements it upgrades the map to aq hashbrown base map to account for longer itteration times.

License

halfbrown itself is licensed under either of

at your option.

Code / docs copied from hashbrown are obviously licensed under their License.

hacktoberfest

Project health

Overall

3.0/10

Maintained

0/10

Code review

3/10
OpenSSF Scorecard

crates.io

Latest release

0.4.0 · Oct 5, 2025

Releases this year

0

Significant stargazers

Brent Pedersen

1,465 followers · starred Nov 2022