2024-10-16 20:45:11 发布
网友
在gevent模式下运行gunicorn时,monkey patches (particularly those for threadlocals) described here(它使threadlocals变成greenlet局部变量)是否已经自动应用?在
(我正在运行django,目前正在使用threadlocals来快速缓存大型查询结果——我知道gevent/greenlet使用了传统线程的替代模型,因此我很担心)。在
看来我没什么好担心的:
https://github.com/benoitc/gunicorn/blob/master/gunicorn/workers/ggevent.py#L51
看来我没什么好担心的:
https://github.com/benoitc/gunicorn/blob/master/gunicorn/workers/ggevent.py#L51
相关问题 更多 >
编程相关推荐