gevent
文章平均质量分 59
SAN_YUN
这个作者很懒,什么都没留下…
展开
-
gevent 方法测试 文档集合
1. gevent中线程是什么?之前以为会一直增加,现在看不会。ab -n 100 http://127.0.0.1:7299/test/print 'test %s'%(threading.current_thread().getName())client=<socket fileno=21 sock=127.0.0.1:7299 peer=127.0.0.1:337...原创 2013-03-18 22:12:20 · 169 阅读 · 0 评论 -
gevent初步
话说gevent也没个logo啥的,于是就摆了这张图= =|||,首先这是一种叫做greenlet的鸟,而在python里,按照官方解释greenlet是轻量级的并行编程,而gevent呢,就是利用greenlet实现的基于协程的python的网络library,好了,关系理清了。。。话说pycon没有白去阿,了解了很多以前不知道的东西,比如说协程,gevent,greenlet,...原创 2012-08-17 15:10:38 · 128 阅读 · 0 评论 -
gevent安装
直接通过pip(/duitang/dist/sys/python/bin/pip install gevent )安装gevent报错提示需要先libevent:gevent/libevent.h:9:19: error: event.h: No such file or directory安装好libevent之后再在编译报错 写道File "build/bdist.linux...原创 2012-12-04 18:54:50 · 573 阅读 · 0 评论 -
mongoDB gevent
mongoDB是支持gevent的,详见:http://api.mongodb.org/python/current/examples/gevent.html PyMongo supports Gevent. Simply call Gevent’smonkey.patch_all() before loading any other modules:>>&...原创 2012-12-05 01:06:58 · 294 阅读 · 0 评论 -
gevent project
This page has been migrated to https://github.com/SiteSupport/gevent/wiki/ProjectsThis is an (incomplete) list of projects that use Gevent. If you like to be included, please mail to the Google gr...原创 2012-12-25 16:41:58 · 147 阅读 · 0 评论 -
gevent-websocket
gevent-websocket是一个使用gevent的websocket,地址:http://www.gelens.org/code/gevent-websocket/ import sys, osimport memcacheimport geventfrom gevent import wsgifrom gevent import socketimport gev...原创 2012-10-14 20:04:48 · 575 阅读 · 0 评论