toTrie

fnauto toTrie(size_t level, Set)(Set set) if (isCodepointSet!Set)

Convenience function to construct optimal configurations for packed Trie from any set of U+.

The parameter level indicates the number of trie levels to use, allowed values are: 1, 2, 3 or 4. Levels represent different trade-offs speed-size wise.

Level 1 is fastest and the most memory hungry (a bit array).

Level 4 is the slowest and has the smallest footprint.

See the Synopsis, Synopsis section for example.

Note

Level 4 stays very practical (being faster and more predictable)

compared to using direct lookup on the set itself.