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

Does Dashmap Re-Size Itself ? #296

Open
borgben opened this issue Feb 13, 2024 · 1 comment
Open

Does Dashmap Re-Size Itself ? #296

borgben opened this issue Feb 13, 2024 · 1 comment

Comments

@borgben
Copy link

borgben commented Feb 13, 2024

Does Dashmap behave like a normal hash table, resizing itself and re-hashing its keys after entries exceed a certain threshold?

I spent some time digging around the code-base but if this happens I couldn't find where. Any pointers as to whether Dashmap behaves this way and if so where this is being handled within the code base would be greatly appreciated.

@Imberflur
Copy link

Looking at https://docs.rs/dashmap/5.5.3/src/dashmap/lib.rs.html#88-92, data is broken into shards that each act like a normal hashmap. Afaict, the number of shards itself doesn't change and is set when creating the dashmap.

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

2 participants