3 ms·
I was mostly just calbrating my opimization decision making. I think only considering wikipedia visits is underestimating. A visit is many http transactions, a
by jws 17y ago
I was mostly just calbrating my opimization decision making.
I think only considering wikipedia visits is underestimating. A visit is many http transactions, and a webserver is targetted for many times the traffic of wikipedia. Still, it is likely no one ever felt a better user exprience from this one optimization.
But what if all the code is 33% faster than strcmp style code? That would be nice, but also seems unlikely.
My biggest two takeaways:
— beware your OS. The freebsd (mac) strcmp is about twice as fast as the GNU glibc.
— forget about gnu's gperf, it is extra complexity for no benefit. Maybe it would win on very long word lists, but I don't know.