|
|
|
|
|
by framecowbird
1618 days ago
|
|
> CPython doesn't have a just in time compiler right now, instead the interpreter is running the bytecode instructions directly. Isn't compiling and then immediately running the code exactly what a just in time compiler is? Or do I have a misunderstanding of the term? |
|
A JIT would compile the bytecode to machine code then run it directly (at least for frequently executed code paths). There is no "switch" anymore. Each bytecode instruction has already been replaced by the corresponding machine code.