I hope that one day, CPython will get its JIT compiler as well :-D (There are already multiple JIT compilers in forks of CPython.)
2018-08-01 23:20 GMT+02:00 Simon Cross email@example.com:
On Wed, Aug 1, 2018 at 10:33 PM, Stefan Behnel firstname.lastname@example.org wrote:
It's faster under PyPy because their JIT can understand and optimise it. Or, more specifically, its usage in jitted code, so you get unboxed native calls instead of Python API calls. CPython does not have a JIT, that's why it's slower there. Doesn't really have anything to do with the C-API as such.
I think it was this kind of dynamic optimization that Victor was hoping might one day make it into CPython (and was blocked by the current complex C-API). _______________________________________________ capi-sig mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org