Eventlet?

mattseh

import this
Apr 6, 2009
5,504
72
0
A ~= A
I've been playing with it, sick of normal threads of scrapers etc. It seems like less green threads gives better performance? Any advice / tips?
 


Eventlet probably outperforms many alternatives, but if memory serves you can manage your own async IO with urllib2 and friends so it's probably overkill for things like scrapers.
 
Eventlet is the shit. You can write a synchronous function for scraping, see if it works, and then add ~5 lines of code from Eventlet to make it asynchronous. No thread locks and syncing, threadsafe queues, or debugging headaches. It's one of those things that really surprises me for not being more popular in the Python community.