Short (ASCII, 7-bit per character) string storage and comparison optimization in C++
问题 In my project I'm using huge set of short strings in ASCII 7-bit and have to process (store, compare, search etc) these strings with maximum performance. Basically, I build some Index array of uint64_t type and each element stores 9 characters of a word and use that index as Numeric element for any string comparison operation. Current implementation works fast, but may be it's possible to improve it a bit if you will.. This function converts up to 9 initial characters to uint64_t value - any