Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add spawn_tree_locals, spawning_greenlet and spawning_stack to gevent.greenlet.Greenlet #1115
This partially addressed #755. I will address the ID portion in a separate PR.
This slowed down spawning of greenlets a fair amount (8-10x) so to get the speed back close to where it was, that module is now compiled with Cython.
Raw timing before:
So approximately 3x slower in relative terms, but still pretty fast in absolute terms. This is very artificial, of course. Slightly less artificial is
Again, some slowdown, but that attenuates as you use more sophisticated methods. Overall the comparison looks reasonable to me based on the benefits. And joining got faster!