Wheatserver---C实现的更快的WSGI服务器,一个新的应用服务器框架

51 views
Skip to first unread message

wheat

unread,
Mar 8, 2013, 12:12:49 PM3/8/13
to pyth...@googlegroups.com
Wheatserver来自于构造一个开源的uWSGI轻量级的项目,但随着项目发展,可插拔式的工程构建使得发展为通用应用服务器,分离的模块使得极易构造出适合的应用环境。

Wheatserver中文概览: http://www.wzxue.com/wheatserver/
Wheatserver英文部署简介: http://yuyuyu101.github.com/wheatserver/
Wheatserver的开源: http://github.com/yuyuyu101/wheatserver

WSGI服务作为Wheatserver的一个模块,与WSGI服务器中性能最强劲的Gevent的性能比较: 



希望各位走过路过的。。。给点意见。。

simon zhang

unread,
Mar 8, 2013, 12:39:25 PM3/8/13
to pyth...@googlegroups.com
楼主这么晚不睡觉要赞一个。
用C写的要赞一个。
开源的要支持下。
多进程的异步协程听起来还是很爽快的。
代码以后再翻。

simon zhang

unread,
Mar 8, 2013, 12:40:57 PM3/8/13
to pyth...@googlegroups.com
喜欢自己做轮子的同学都是好同学。

limodou

unread,
Mar 8, 2013, 7:35:55 PM3/8/13
to Python.cn@google
支持,不知道和uwsgi是什么关系?


2013/3/9 wheat <haoma...@gmail.com>

--
--
邮件来自: `CPyUG`华蟒用户组(中文Python技术邮件列表)
规则: http://code.google.com/p/cpyug/wiki/PythonCn
发言: pyth...@googlegroups.com
退订: python-cn+...@googlegroups.com (向此发空信即退!)
详情: http://code.google.com/p/cpyug/wiki/CpyUg
G+: https://plus.google.com/u/0/communities/108786798869709602787
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
---
您收到此邮件是因为您订阅了 Google 网上论坛的“python-cn(华蟒用户组,CPyUG 邮件列表)”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 python-cn+...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 



--
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: https://github.com/limodou/uliweb
My Blog: http://my.oschina.net/limodou

月忧茗

unread,
Mar 10, 2013, 12:03:01 PM3/10/13
to pyth...@googlegroups.com
支持LZ,
曾经也想 自己用 C 或者 erlang 写一个高效的 wsgi 应用服务器,

但 太懒 + 真没时间折腾这些东西。

等几年生活安定了 再来搞这些吧, 如果那时候还有这个心思的话!


2013/3/9 limodou <lim...@gmail.com>

Long Bai

unread,
Mar 11, 2013, 12:08:05 AM3/11/13
to pyth...@googlegroups.com
简单App下,平均相应速度是gevent的二分之一,主要是没有IO操作,C实现的Wheatserver自然更快。
速度-》时间

登录麻烦,就直接在这里回了

wheat

unread,
Mar 11, 2013, 3:01:51 AM3/11/13
to pyth...@googlegroups.com
嗯,谢啦

其实IO操作也更快,Zero Copy是核心,静态文件或者大数据response也更快。

在 2013年3月11日星期一UTC+8下午12时08分05秒,Long Bai写道:

赵勇奎

unread,
Mar 11, 2013, 4:47:36 AM3/11/13
to pyth...@googlegroups.com
clone了一份代码,编译无法通过啊

wheatserver-master$ make
cd src && make all
cc -O0 -Wall -g  -c config.c -o config.o
cc -O0 -Wall -g  -c net.c -o net.o
cc -O0 -Wall -g  -c log.c -o log.o
cc -O0 -Wall -g  -c wstr.c -o wstr.o
cc -O0 -Wall -g  -c list.c -o list.o
cc -O0 -Wall -g  -c dict.c -o dict.o
cc -O0 -Wall -g  -c hook.c -o hook.o
cc -O0 -Wall -g  -c sig.c -o sig.o
cc -O0 -Wall -g  -c networking.c -o networking.o
cc -O0 -Wall -g  -c util.c -o util.o
cc -O0 -Wall -g  -c register.c -o register.o
cc -O0 -Wall -g  -c stats.c -o stats.o
cc -O0 -Wall -g  -c event.c -o event.o
cc -O0 -Wall -g  -c setproctitle.c -o setproctitle.o
cc -O0 -Wall -g  -c slice.c -o slice.o
cc -O0 -Wall -g  -c debug.c -o debug.o
cc -O0 -Wall -g  -c portable.c -o portable.o
cc -O0 -Wall -g  -c memalloc.c -o memalloc.o
cc -O0 -Wall -g  -c app/application.c -o app/application.o
cc -O0 -Wall -g  -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c app/wsgi/app_wsgi.c -o app/wsgi/app_wsgi.o
cc -O0 -Wall -g  -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c app/wsgi/wsgiwrapper.c -o app/wsgi/wsgiwrapper.o
cc -O0 -Wall -g  -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c app/wsgi/wsgiinput.c -o app/wsgi/wsgiinput.o
app/wsgi/wsgiinput.c:6:12: warning: unused function 'InputStream_findChar' [-Wunused-function]
static int InputStream_findChar(InputStream *self, struct slice *s, int c)
           ^
1 warning generated.
cc -O0 -Wall -g  -c app/static/app_static_file.c -o app/static/app_static_file.o
cc -O0 -Wall -g  -c protocol/protocol.c -o protocol/protocol.o
cc -O0 -Wall -g  -c protocol/http/http_parser.c -o protocol/http/http_parser.o
cc -O0 -Wall -g  -c protocol/http/proto_http.c -o protocol/http/proto_http.o
protocol/http/proto_http.c:610:22: warning: unused variable 'http_data' [-Wunused-variable]
    struct httpData *http_data = c->protocol_data;
                     ^
protocol/http/proto_http.c:608:13: warning: unused function 'httpSendHeadersAction' [-Wunused-function]
static void httpSendHeadersAction(struct client *c)
            ^
2 warnings generated.
cc -O0 -Wall -g  -c worker/worker_async.c -o worker/worker_async.o
cc -O0 -Wall -g  -c worker/worker_sync.c -o worker/worker_sync.o
cc -O0 -Wall -g  -c worker/worker.c -o worker/worker.o
worker/worker.c:197:25: error: no member named 'pool' in 'struct client'
    return slabAlloc(c->pool, size);
                     ~  ^
1 error generated.
make[1]: *** [worker/worker.o] Error 1
make: *** [all] Error 2



Date: Mon, 11 Mar 2013 00:01:51 -0700
From: haoma...@gmail.com
To: pyth...@googlegroups.com
Subject: Re: [CPyUG] Wheatserver---C实现的更快的WSGI服务器,一个新的应用服务器框架

wheat

unread,
Mar 11, 2013, 11:10:18 AM3/11/13
to pyth...@googlegroups.com
非常抱歉,昨天晚上在研究一个大量小内存分配优化方案但是还有bug没解决,半夜竟然把代码给push了。。。现在可以了

在 2013年3月11日星期一UTC+8下午4时47分36秒,YongKui Zhao写道:
Reply all
Reply to author
Forward
0 new messages