Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom allocator support #297

Open
Colecf opened this issue Feb 16, 2024 · 4 comments
Open

Custom allocator support #297

Colecf opened this issue Feb 16, 2024 · 4 comments

Comments

@Colecf
Copy link

Colecf commented Feb 16, 2024

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
Copy link

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
Copy link

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

@MathGeniusJodie
Copy link

I would also really want this, it would allow having the map in a mmapped file

@anthony-crystalpeak
Copy link

With some support for cross-process futex/locks, it could also be placed in shared memory across processes which was my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants