Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 3302

off-topic • Re: How I read C++ as C

$
0
0
Pedantically: that sort of dynamic dispatch may well be slower than a switch statement as it requires a full function call. With a switch you might get as simple as a jump table — no separate scope so no stack activity whatsoever.
You may find this recent LWN discussion, and the article that it links to, interesting - it discusses the state of the art in bytecode interpreters, and some of the ways modern compiler optimisations interact with them. It's complicated!

Statistics: Posted by atsampson — Wed Mar 19, 2025 12:28 am



Viewing all articles
Browse latest Browse all 3302

Trending Articles