←back to thread

180 points xnacly | 2 comments | | HN request time: 0.417s | source
1. duped ◴[] No.44561248[source]
Do you have benchmarks that show the hand rolled jump table has a significant impact?

The only reason this raises an eyebrow is that I've seen conflicting anec/data on this, depending pretty hard on target microarchitecture and the program itself.

replies(1): >>44561599 #
2. xnacly ◴[] No.44561599[source]
Sadly that was one of the things I did benchmark, but didn't write down the results. I read a lot that naive switch is faster because the compiler knows how to optimise them better, but for my architecture and benchmarks the computed gotos were faster