Comment

Comment by throwaway81523

I wonder if you thought about perfect hashing instead of that comparison tree. Also, flex (as in flex and bison) can generate what amounts to trees like that, I believe. I haven't benchmarked it compared to a really careful explicit tree though.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton