rgalanakis/goless

PyPy should prefer gevent backend

Closed this issue · 2 comments

Until stackless problems are fixed.

On a possibly similar note: is there a preferred backend when none is specified? I was looking at the code and right now it's undefined which one will be tried first.

One possible solution that would fix both cases is to being trying gevent first and then try stackless. If this sounds reasonable I'll do it.

Yeah I changed the behavior to choose a random one. In the referenced change, I added a _calc_default function which will choose gevent under PyPy and stackless under everything else, then fall back to the first success of a random order if none of them are available.