amiller / viff

Clone of http://viff.dk/
GNU General Public License v3.0
2 stars 2 forks source link

Investigate porting viff to Gevent #3

Open amiller opened 6 years ago

amiller commented 6 years ago

There are some benefits to using gevent instead of twisted. You can write your code in a more straight-line fashion, avoiding "callback hell". Functions like I/O and waiting for a queue are written as though they block, but actually yield to other greenlet threads. My No. 1 reason to prefer gevent to twisted is that I find it easier to debug, since an except has a meaningful call stack.