Module concread::internals::hashtrie

source ·
Expand description

HashTrie - A concurrently readable HashTrie

This is similar to HashMap, however is based on a suffix trie which is append only / additive only. As a result, the more you add, the more space this will take up. The only way to “remove” an item would be to swap it’s value with a “None”. The trie won’t shrink, but node size requirements are low. For a trie with 4,294,967,295 items, only ~40MB is required. For 1,000,000 items only ~12KB is required.

If in doubt, you should use HashMap instead 🥰

Modules§

  • The cursor is what actually knits a trie together from the parts we have, and has an important role to keep the system consistent.
  • Iterators for the hashtrie