squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

How is this on PyPy? #22

Closed v3ss0n closed 7 years ago

v3ss0n commented 7 years ago

Since it is written mostly in C , it won't work in pypy right ?

squeaky-pl commented 7 years ago

Hi, I have PyPy on my radar, though I am not gonna look into it until PyPy reaches 3.5 compatibility somewhere later this year and most known JIT regressions are removed.

You are correct, it's tightly coupled to CPython's extension API at the moment. I made some pree liminary tests with cffi in the beginning but a lot of cffi calls in tight loop turned to be slower on CPython so I gave up. You can find parser bingings in src/parser that worked on PyPy but were slower. Said that I have some new ideas since then but I'm not going to invest time until PyPy 3.5 is done.

v3ss0n commented 7 years ago

they are working on c-pyext for pypy , so it will be fine with CPython extension api (if it ever get stable).

Waiting for PyPy3.5 too , so i can actually switch to python3.x .

kawing-chiu commented 7 years ago

Looking forward to seeing a 10x speed bump on pypy :)

squeaky-pl commented 7 years ago

Closing this in favor of 0b5fb17.