Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dsamarin
· 2y ago · 0 comments
The obvious solution to this is to pre-compile a list of all possible Unicode strings up to the required length, sort them, and create a lookup table using their indices. I wonder for what kind of project this would be useful.
Comments
[–]
thfuran
2y ago
If that works for you for anything but very small strings, I want to buy your computer.
[–]
remram
2y ago
Even for 3-codepoint strings it already wouldn't fit in any computer that exists. And that is not sufficient to encode all 1-glyph strings.