xacrimon / dashmap

Blazing fast concurrent HashMap for Rust.
MIT License
3.09k stars 151 forks source link

feat: memoize default shard amount #222

Closed tomkarw closed 2 years ago

tomkarw commented 2 years ago

Closes https://github.com/xacrimon/dashmap/issues/219.

Use once_cell crate to memoize the value. This doesn't add any new dependencies, as once_cell was already a subdependency. Additionally, it was merged into std in nightly and is awaiting stabilization.

Geal commented 2 years ago

this looks good. Any plans to merge it and release soon?

tomkarw commented 2 years ago

r? @xacrimon