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

Document Required: RwLock in this crate compared to the RwLock in parking_lot/std #313

Open
YjyJeff opened this issue Oct 10, 2024 · 0 comments

Comments

@YjyJeff
Copy link

YjyJeff commented Oct 10, 2024

Hi, I am curious about why the dashmap is so fast, therefore, I am reading the source code and docs to figure it out.

I find that sharding is a common technique used to implement the concurrent hashmap. From the implementation view, RwLock implemented in this crate is the main technique to make it unique, compared to other concurrent hashmaps. However, the RwLock does not have docs to describe the difference between it and RwLock in parking_lot/std. Could you add the docs to describe the benefits of this RwLock compared to parking_lot/std and why it is implemented in this way? It is really helpful for me

Thanks in advance

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

1 participant