Issue with Hash Map Space and Performance

前端 未结 2 1658
长情又很酷
长情又很酷 2021-01-21 14:44

I have to store more than 100 millions of key-values in my HashMultiMap (key can have multiple values). Can anybody help me which one is faster for both storing and searching:

2条回答
  •  没有蜡笔的小新
    2021-01-21 14:49

    I would have a look at leveldb, because it claims to be faster than Kyoto Cabinet. Other interesting libraries are Kyoto Cabinet, and JDBM3.

    Those are low level libraries (without support for relational queries or SQL). Some offer transactional support, but I'm not sure if you need it. Still, in-memory hash maps are faster.

提交回复
热议问题