If the number of keys is very small, for example. 10 or something else, maybe you can just do a linear search. If you take care to keep the compression in the key memory in memory to maximize cache hits, it can be pretty fast and have very low overhead in terms of memory allocation, etc.
unwind
source share