top | item 16839101

Improving performance with Stackless Python

1 points| pavelbr | 8 years ago |github.com | reply

3 comments

order
[+] mattbillenstein|8 years ago|reply
How does stackless work with the library ecosystem vs things like gevent?
[+] pavelbr|8 years ago|reply
I don't know about gevent, but stackless will work with any libraries in the same way CPython does, which makes sense given it's just a fork. Native extensions obviously won't benefit from stackless but still work with it.

Exceptions and threads don't mix well however, so using Stackless' microthreads with code that relies on exceptions will likely lead to slowdown, so there are a few things to be aware of.