h11 icon indicating copy to clipboard operation
h11 copied to clipboard

Speed up with Cython

Open abersheeran opened this issue 3 years ago • 3 comments

On the premise of keeping Pure-Python h11, maybe .pxd + Cython can be used to improve performance?

Related links: https://cython.readthedocs.io/en/stable/src/tutorial/pure.html#augmenting-pxd

abersheeran avatar Mar 23 '21 12:03 abersheeran

What parts are slow for you? Also I'm pretty sure Cython isn't considered pure python by anyone

sigmavirus24 avatar Mar 23 '21 18:03 sigmavirus24

I think Cython is a step too far, I'm having some success with mypyc though - I just need to clean it up and propose as a PR.

pgjones avatar Mar 23 '21 18:03 pgjones

I think Cython is a step too far, I'm having some success with mypyc though - I just need to clean it up and propose as a PR.

mypyc also seems to be very good.

abersheeran avatar Mar 24 '21 01:03 abersheeran