Computed goto for efficient dispatch tables (2012)

·Hacker News··

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 →

Related Articles

Hyundai buys Boston Dynamics
ck2 · Hacker News · 1d ago
Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28
philonoist · Hacker News · 1d ago
Swiss parliament lifts ban on new nuclear power plants
leonidasrup · Hacker News · 2d ago
Satellite reveals immense scale of GPS signal tampering
y1n0 · Hacker News · 13h ago
Lore – Open source version control system designed for scalability
regnerba · Hacker News · 3d ago