just-in-time compilation

Compiling code into machine code while the program is already running, focusing on the parts that run most often.

In more detail

An interpreter starts running code instantly but runs it slowly, while compiling everything ahead of time needs a separate build step. A JIT compiler combines both: it starts by interpreting, watches which functions are hot, then compiles those into optimised machine code. V8's pipeline runs Ignition, then Sparkplug, then TurboFan.

Related terms

Taught in

References