Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Meta Programming/Programming Feature/
Conditional Programming
Search

Conditional Programming

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Nov 17 10:8
Editor
Editor
Seonglae ChoSeonglae Cho
Edited
Edited
2025 Oct 15 17:38
Refs
Refs

If-else, Switch-case

Disadvantageous for CPU
Branch Prediction
, leading to overall compile performance degradation due to branch misprediction penalty
While switch-case can be less favorable than if-else when sequentially checking multiple conditions, switch-case is mutually exclusive and typically has no significant performance impact
 
 
 
 
JIT: so you want to be faster than an interpreter on modern CPUs…
Since my previous blog entry about JIT compiler for PostgreSQL, sadly not much happened due to a lack of time, but still some things were done (biggest improvement was the port to ARM64, a few optimizations, implementing more opcodes…). But I am often asking myself how to really beat the interpreter… And on “modern” CPUs, with a well written interpreter, that’s far more complicated than many would imagine. So in order to explain all this and show how I am planning to improve performance (possibly of the interpreter itself too, thus making this endeavor self-defeating), let’s first talk about…
JIT: so you want to be faster than an interpreter on modern CPUs…
https://www.pinaraf.info/2025/10/jit-so-you-want-to-be-faster-than-an-interpreter-on-modern-cpus/
 
 

Backlinks

Function Programming

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Meta Programming/Programming Feature/
Conditional Programming
Copyright Seonglae Cho