←back to thread

291 points rbanffy | 1 comments | | HN request time: 0.253s | source
Show context
MichaelMoser123 ◴[] No.44011992[source]
cpython doesn't have a JIT, why is free-threaded python a higher priority than developing a just in time compiler? The later would be more resonant with the typical use case for python and benefit a larger portion of users, wouldn't it? (Wouldn't a backend server project use golang or java to begin with?)
replies(1): >>44013281 #
1. diziet_sma ◴[] No.44013281[source]
There have been many attempts to make a Python JIT that is compatible with CPython to various levels of success. However the larger reason is that the gains from removing the GIL far exceeds the gains from a JIT.

If you're writing performance sensitive python code, the "hot" code is likely already in a C-extension, such as Numpy. So there is negligible benefit to running the code with a JIT.