[pypy-dev] uWSGI PyPy improvements and support for continulets (and greenlets)

Roberto De Ioris roberto at unbit.it
Fri Jun 7 18:25:16 CEST 2013


Hi everyone, the current development tree of uWSGI includes a new set of
patches aimed at improving performances of the pypy plugin.

The new code removes the need of using c helpers for calling a bunch of
uWSGI api functions, the improvements is about 5% in respect to the
current stable plugin.

In addition to this, support for continulets have been added:

https://github.com/unbit/uwsgi/blob/master/plugins/pypy/pypy_setup.py#L725

that means you can use the async/nonblocking (raw) api of uWSGI:

https://github.com/unbit/uwsgi/tree/master/t/pypy

Finally (just as a proof of concept) i have added greenlets support too
(this time in an external file you can load on startup):

https://github.com/unbit/uwsgi/blob/master/contrib/pypy/uwsgi_pypy_greenlets.py


I would like to point the fact that this is a really "extreme" usage of an
interpreter and PyPy is surviving to basically all of the tests i have
made
(for example the uwsgi internal routing subsystem that is completely in c
is automatically wrapped to a continulet when the server is configured in
async mode)

As always many thanks to Maciej Fijalkowski for his help

-- 
Roberto De Ioris
http://unbit.it


More information about the pypy-dev mailing list