High-performance Concurrent MultiMap Java/Scala

后端 未结 10 1280
無奈伤痛
無奈伤痛 2020-12-12 15:42

I am looking for a high-performance, concurrent, MultiMap. I have searched everywhere but I simply cannot find a solution that uses the same approach as ConcurrentHashMap (O

10条回答
  •  遥遥无期
    2020-12-12 16:18

    It's late for the discussion, yet...

    When it comes to high performance concurrent stuff, one should be prepared to code the solution. With Concurrent the statement the Devil is in the details has a complete meaning. It's possible to implement the structure fully concurrent and lock-free.

    Starting base would be the NonBlocking Hashtable http://sourceforge.net/projects/high-scale-lib/ and then depending how many values per key and how often need to add/remove some copy on write Object[] for values or an array based Set with semaphore/spin lock.

提交回复
热议问题