▲ | dafelst 6 days ago | ||||||||||||||||||||||||||||
But did you think about using a perfect hash function and table? Based on my prior research, it seems like they are almost universally faster on small strings than trees and tries due to lower cache miss rates. | |||||||||||||||||||||||||||||
▲ | dist1ll 6 days ago | parent [-] | ||||||||||||||||||||||||||||
Ditto. Perfect hashing strings smaller than 8 bytes has been the fastest lookup method in my experience. | |||||||||||||||||||||||||||||
|