• Paweł Bylica's avatar
    trie: simplify StackTrie implementation (#23950) · 86fe359a
    Paweł Bylica authored
    Trim the search key from head as it's being pushed deeper into the trie. Previously the search key was never modified but each node kept information how to slice and compare it in keyOffset. Now the keyOffset is not needed as this information is included in the slice of the search key. This way the keyOffset can be removed and key manipulation
    simplified.
    86fe359a
stacktrie.go 13.2 KB