-
Notifications
You must be signed in to change notification settings - Fork 15
Open

Description
This is just a brainstorming issue for concurrent hash tables.
@Amanieu, do you think we could make hashbrown
concurrent by having a lock per bucket? When resizing the table we'd probably have to lock all buckets. That sounds like a rather straightforward approach for building a totally generic concurrent hash table without much fuss.
I'm sure we could devise a faster hash table for more specialized use cases. Apart from a fully generic HashMap<K, V>
, we'd probably want to build a special HashMap<K: Copy, V>
too that can avoid locks in some places.
Thoughts? What do you think would be the best way forward here? Ideally something not overly ambitious that at least gets us started. :)
cc servo/servo#22334
cc @SimonSapin
SimonSapin, jonhoo, discosultan, rahulwa, sirgl and 10 more
Metadata
Metadata
Assignees
Labels
No labels