Why is Pypy better than CPython for socketify if it is a C++ library under the hood ? #196
Answered
by
cirospaciari
Napolitain
asked this question in
Q&A
-
benchmarks shows pypy faster, while it should speed up only pure python code right? |
Beta Was this translation helpful? Give feedback.
Answered by
cirospaciari
Aug 21, 2024
Replies: 1 comment
-
CFFI at the time was the fastest integration with PyPy and compatible with CPython but it has a lot of overhead, native extensions can be implemented to favor one or another, That's why I'm reworking this without CFFI using HPy with has less overhead and will allow to CPython to be way faster just by cutting the CFFI overhead. Also we implemented a lot of Python code, asyncio is also faster in PyPy and PyPy can interop faster with native than CPython |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cirospaciari
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CFFI at the time was the fastest integration with PyPy and compatible with CPython but it has a lot of overhead, native extensions can be implemented to favor one or another, That's why I'm reworking this without CFFI using HPy with has less overhead and will allow to CPython to be way faster just by cutting the CFFI overhead.
Also we implemented a lot of Python code, asyncio is also faster in PyPy and PyPy can interop faster with native than CPython