|
dong3580Aug 8, 2014
1
表示已经死循环了好几个月,服务器依然正常ing。。。几千次怕啥,
|
|
2
在gevent碰到这种问题,会直接跑死,怎样在gevent中处理cpu-bound任务呢?
|
|
hydraztAug 8, 2014
3
gevent处理io-bound,cpu-bound没必要gevent吧
|
|
MutooAug 8, 2014
4
又不是 O(n^k), k>2 怕啥
|
|
5
可以试一试 Duff's Device 来优化一下
Duff's device - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Duff's_device |