⚙️Just-in-Time Compilation (JIT)
Also known as JIT, JIT Compiler, Just-in-Time Compiler
The parts that run most are made fast while the program runs.
Think of it like
Think of it like a cook who sees what most people order. That dish gets made ready early.
Example
A web game loops over its drawing code thousands of times. The browser's JIT compiles that loop, and the game stops stuttering.
Why it matters
A JIT gives a quick start and fast running too. It is a big reason JavaScript became fast enough for whole apps.
Definition
Common mistake
Key takeaways
- 1While running. Compiling happens during the run.
- 2Hot parts first. Code that runs most gets compiled.
- 3Warms up. Speed grows the longer it runs.