by evmar · 6mo ago · 0 comments
This is slower than a direct jmp (which doesn’t use the table) but also indirect jumps were slower in the original program to begin with and typically don’t occur in performance-critical loops.
The main use-case in performance-critical loops is generally something like a core interpreter loop, where you're dispatching on an opcode.