Re:How the CPython compiler works
by Jasper_ on Thursday September 24, 2020 @01:14PM
(#24580938)
Not always. Computed gotos can be faster, because it can relax some restrictions that the switch statement can't amke. Most VM implementations, including CPython, use computed gotos for a not insignificant performance improvement.
https://github.com/python/cpython/blob/master/Python/ceval.c...