Computed goto for efficient dispatch tables (2012)
Toggle navigation Eli Bendersky's website About Projects Archives Computed goto for efficient dispatch tables July 12, 2012 at 15:44 Tags Assembly , C & C++ Recently, while idly browsing through the source code of Python, I came upon an interesting comment in the bytecode VM implementation (Python/ceval.c) about using the computed gotos extension of GCC [1]. Driven by curiosity, I decided to code a simple example to evaluate the difference between using a computed goto and a traditional switch s
Read full article →