Skip to content

Comment on Is Python Code Sensitive to CPU Caching? (2024)parent

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!

most interpreted code uses a JIT native compiler at this point

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.