TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Gevent 0.13.0 released - coroutine network library for Python

14 点作者 denik将近 15 年前

4 条评论

dcreemer将近 15 年前
I'm a happy customer. I use gevent for a small program that resolves every short link in the Twitter firehose. The code makes ~100-200 HTTP requests per second, waits on a few thousand outstanding connections, and streams out the results.
kevingadd将近 15 年前
I pity anyone who has to debug problems caused by monkeypatching the socket module... I wish people would stop trying to solve problems with monkeypatching in python. There are better solutions. Cool idea other than that, though.<p>Does anyone know of any large-scale projects using this library? It would be interesting to see how it performs in the real world - not needing to use OS threads means that maybe you won't have as much trouble with the GIL, but on the other hand, operations like socket.read() are supposed to release the GIL while they block anyway.
评论 #1516345 未加载
评论 #1516066 未加载
ericflo将近 15 年前
Also note a similar library named Eventlet: <a href="http://eventlet.net/" rel="nofollow">http://eventlet.net/</a>
评论 #1516073 未加载
stratospark将近 15 年前
Gevent seems to be the fastest Python async server after Tornado: <a href="http://nichol.as/asynchronous-servers-in-python" rel="nofollow">http://nichol.as/asynchronous-servers-in-python</a><p>I'd be interested in seeing node.js benchmarked against these.
评论 #1516177 未加载