trie: Optimize `keys` function (#11457)
* trie: Optimize `keys` function Instead of iterating the entire state and collecting all keys that match the given prefix, we can directly use the optimized prefix iterator. * Add a test
Please register or sign in to comment