aioquic icon indicating copy to clipboard operation
aioquic copied to clipboard

CFFI support

Open DemiMarie opened this issue 3 years ago • 3 comments

This is to improve performance on PyPy.

DemiMarie avatar May 01 '22 00:05 DemiMarie

I don't understand this issue could you elaborate please?

jlaine avatar May 01 '22 07:05 jlaine

I don't understand this issue could you elaborate please?

PyPy uses a different internal representation of Python objects than CPython does. For this and other reasons, its implementation of the CPython C API uses an emulation layer, which is rather slow. CFFI, on the other hand, is very fast on PyPy due to dedicated code in PyPy’s JIT compiler. It’s also pretty fast on CPython.

DemiMarie avatar May 01 '22 07:05 DemiMarie

OK so no I have no plans to implement this myself. I'd be happy to review a PR though, provided there are benchmarks for both CPython and PyPy so we can make an informed decision.

jlaine avatar Jun 25 '22 10:06 jlaine

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 24 '22 04:10 github-actions[bot]