
Aug. 1, 2018
7:52 p.m.
Simon Cross wrote:
I think these benchmarks support the general idea that changing the C API does open some doors to better performance (which is why PyPy folks wrote CFFI)?
I wonder. The benchmarks show that the C-API is very fast, which historically is one of the reasons for Python's success.
In my experience the theoretical maximum by eliminating ceval.c and inlining everything is below 2x, something around 1.6x.
So speedups would have to be done in libpython itself, but I'm not exactly sure what is being proposed.
Stefan Krah