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

Add single writer concurrent hash maps #23

Open
mjpt777 opened this issue Sep 10, 2015 · 7 comments
Open

Add single writer concurrent hash maps #23

mjpt777 opened this issue Sep 10, 2015 · 7 comments

Comments

@mjpt777
Copy link
Contributor

mjpt777 commented Sep 10, 2015

Open addressing hash maps that have only a single mutator thread but many reader threads.

@tmontgomery
Copy link
Contributor

There are some interesting aspects of Robin Hood hashing that might be good to include. http://sebastiansylvan.com/2013/05/08/robin-hood-hashing-should-be-your-default-hash-table-implementation/

@mjpt777
Copy link
Contributor Author

mjpt777 commented Sep 12, 2015

Robin Hood hashing can be a good approach. However I would not use tombstones like in how your link works. I've found for high removal rates that tombstones degrade lookup performance.

@bobymicroby
Copy link

@tmontgomery @mjpt777 Here is an interesting paper on replacing Hood's tombstones with 'backward shift deletion' : http://codecapsule.com/2013/11/17/robin-hood-hashing-backward-shift-deletion/

@mjpt777
Copy link
Contributor Author

mjpt777 commented Oct 15, 2015

@bobymicroby Thanks I'll take a look.

@loveyoupeng
Copy link

any plan to add a Object2IntHashMap, it could be used as a pojo counter?

@mjpt777
Copy link
Contributor Author

mjpt777 commented Oct 15, 2017

@loveyoupeng We have no immediate need for this but would happily accept a PR for this.

@loveyoupeng
Copy link

@mjpt777 i create a copy cat version of Object2InthashMap as a PR, Please help to review

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

No branches or pull requests

3 participants