xacrimon / dashmap

Blazing fast concurrent HashMap for Rust.
MIT License
2.84k stars 140 forks source link

Custom allocator support #297

Open Colecf opened 4 months ago

Colecf commented 4 months ago

Would it be possible to support custom allocators in dashmap? I'd like to try using it with bumpalo.

I know that hashbrown supports it.

lylythechosenone commented 3 months ago

Currently, allocator_api (the feature you are referring to) is unstable. Using it would require nightly. Although, this could be done with the allocator_api2 crate for now.

anthony-crystalpeak commented 2 months ago

could we gate this behind a nightly feature the same as hashbrown? Lack of this feature might force me to revert to RwLock<HashMap> :<