toTrie

Convenience function to construct optimal configurations for packed Trie from any set of $(CODEPOINTS).

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 section for example.

Note: Level 4 stays very practical (being faster and more predictable) compared to using direct lookup on the set itself.

toTrie
(
size_t level
Set
)
(
Set set
)

Meta