Why are hash maps better than trie maps?

前端 未结 2 954

By trie map I mean an associative array, where the payloads are stored in a trie instead of a hash table.

When I\'m using a hash map/table, the keys I use are typica

2条回答
  •  没有蜡笔的小新
    2020-12-19 10:15

    Just in case you are a Scala programmer, TrieMap is a "concurrent thread-safe lock-free implementation of a hash array mapped trie". There's none in Java standard lib this moment.

提交回复
热议问题