3 ms·
> You presumably can't do much advanced optimization like inlining, as python is potentially very dynamic with lots of reflection. You need a JIT, such that yo
by masklinn 5y ago
> You presumably can't do much advanced optimization like inlining, as python is potentially very dynamic with lots of reflection.
You need a JIT, such that you can deoptimise and possibly reinline: any function referred to could be modified at rutime. Technically even local variable could be modified by one of the callees reaching back through the callstack, the cpython runtime structure is documented and code does leverage it.
So pypy can do it (and often it means dynamic trickery and reflection is quite expensive there).