Comment Comment by dafelst 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. parent dafelst 1 year ago