FAQ
You can create a segmented map. You can look at class ConcurrentHashMap in Java for this. It has 256 segments if I recall correctly. Problem is iterating over the entire map or querying the size. Then you still have to lock all segments. So your code whould avoid to do this.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJun 29, '15 at 11:18a
activeJun 30, '15 at 5:17a
posts5
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase