Just-in-Time Compilation (JITC)
Unlike interpreters that execute code line by line, JIT compilation converts all bytecode into native machine code. However, this approach has some drawbacks:
- It applies optimization even to code that doesn't require it, potentially wasting compilation time
- This was the compilation strategy used by early JavaScript engines before more sophisticated approaches were developed
JITCs

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…
https://www.pinaraf.info/2025/10/jit-so-you-want-to-be-faster-than-an-interpreter-on-modern-cpus/

Seonglae Cho