Comment on Is Python Code Sensitive to CPU Caching? (2024)parentComments−stingraycharles1yIt should be, as most interpreted code uses a JIT native compiler at this point, which implies the branch prediction is native as well.I would be happy to stand corrected if someone knows more about this, though!−pansa21ymost interpreted code uses a JIT native compiler at this pointI suspect most JavaScript code is JIT-compiled - but most Python, Ruby etc is interpreted (via bytecode).−tarruda1yAFAIK CPython doesn't JIT compile.−pansa21yRecent versions of CPython do have an experimental JIT compiler. I'm not sure how widely-used it is, though.https://peps.python.org/pep-0744/−Qem1yIt's disabled by default, not production ready. You need to compile CPython yourself if you want to try it.
Comments
It should be, as most interpreted code uses a JIT native compiler at this point, which implies the branch prediction is native as well.
I would be happy to stand corrected if someone knows more about this, though!
I suspect most JavaScript code is JIT-compiled - but most Python, Ruby etc is interpreted (via bytecode).
AFAIK CPython doesn't JIT compile.
Recent versions of CPython do have an experimental JIT compiler. I'm not sure how widely-used it is, though.
https://peps.python.org/pep-0744/
It's disabled by default, not production ready. You need to compile CPython yourself if you want to try it.