![](https://secure.gravatar.com/avatar/3958e748e0704904fc94840c6872566b.jpg?s=120&d=mm&r=g)
Aug. 1, 2018
4:20 p.m.
On Wed, Aug 1, 2018 at 10:33 PM, Stefan Behnel <python_capi@behnel.de> 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.
/me nods.
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).