大笨狗 (神:卡那个炸飞,带320亿美元来)

大笨狗喜欢  · · · · · ·  ( 全部 )

大笨狗的日记  · · · · · · · · · ·  ( 全部 )

政治学家是社会的垃圾
2010-05-13 09:16:12
郑卫铭??呵呵 写这样的文章,回他一个脑残,已经是对他最好的恭维了。 事实上,除了美国以外,所有开始实行民主便使用总统制的国家,它们的首次民主尝试都以失败告终。 ++++++++++++++++++++++++++++ 何为成功?何为失败?保持政府的沿续是成功,不能保持的是失败?不能保持的原因很多,有被篡权的,有被起义推翻的,有被......
有关党争的讨论
2009-10-21 11:22:37
大笨狗: 你说到,皇帝为了制衡臣子,就把他们分派,让他们斗。且不说,党争对国家的危害:中国大一统的王朝,亡于党争占三分之一左右,英国也是因为党争,丢了美国殖民地,当你把政府分派的时候,怎么能知道,他们不会借了手中的权力、工具,也把公民分派呢? 有一个经典的营销故事:小镇上,兄弟两个在一条街,相对着各......    (10回应)

大笨狗的相册  · · · · · ·  ( 全部 )

豆瓣
2011-04-06更新

大笨狗的推荐  · · · · · ·  ( 全部 )

大笨狗的评论  · · · · · · · · · ·  ( 全部 )

大笨狗的书 ··········  ( 4本在读 · 9本想读 · 18本读过 )

在读
  • JavaScript核心技术
  • Python Cookbook
  • 计算机程序的构造和解释
  • 算法导论
想读
  • 卓有成效的程序员
  • 李鸿章传
  • 弦论(第1卷)
  • 黄河边的中国
  • 从大历史的角度读蒋介石日记

大笨狗的电影 ··········  ( 1部想看 · 6部看过 )

想看
  • 小武
看过
  • 大笨狗
  • 暖春
  • 黑客帝国3:矩阵革命
  • 圣斗士星矢
  • 玩具总动员
最近喜欢: 春泥 

留言板  · · · · · ·  ( 全部 )

  • 大菠萝
  • 大菠萝:   平安夜吉祥,祝幸福安康~Merry X'mas and Happy new year ~(群发祝福,如有打扰,还请见谅 ╮(╯▽╰)╭)     2011-12-24 22:55
  • 大菠萝
  • 大菠萝:   好久没刷留言版了,心血来潮冒个泡,过来问个安~~嘿嘿嘿嘿     2011-05-10 16:06
  • 蝉
  • :   新年快乐~~     2011-01-01 18:47
  • 大菠萝
  • 大菠萝:   大笨狗元旦快乐,愿君喜乐平安,岁月静好~嗯,还有就是买彩票中个五百万啥的,可要记得菠萝我啊 o(∩_∩)o     2011-01-01 17:20
  • 蝉
  • :   ◕‿◕     2010-12-28 18:38
所属部落: 零伍
The above results show that as a Python web developer we have lots of different methods to deploy our applications. Some of these seem to perform better than others but by focussing only on server performance I will not justify most of the tested servers as they differ greatly in functionality. Also, if you are going to take some stock web framework and won’t do any optimizations or caching, the performance of your webserver is not going to matter as this will not be the bottleneck. If there is one thing which made this benchmark clear is that most Python Web servers offer great performance and if you feel things are slow the first thing to look at is really your own application.

When you are just interested in quickly hosting your threaded application you really can’t go wrong with Apache ModWSGI. Even though Apache ModWSGI might put a little more strain on your memory requirements there is a lot to go for in terms of functionality. For example, protecting part of your website by using a LDAP server is as easy as enabling a module. Standalone CherryPy also shows great performance and functionality and is really a viable (fully Python) alternative which can lower memory requirements.

When you are a little more adventurous you can look at uWSGI and FAPWS3, they are relatively new compared to CherryPy and ModWSGI but they show a significant performance increase and do have lower memory requirements.

Concerning Tornado and performance, I do not think Tornado is an alternative for CherryPy or even ModWSGI. Not only does it hardly show any increases in performance but it also requires you to rethink your code. But Tornado can be a great option if you do not have any code using blocking connections or are just wanting to look at something new.

And then there is Gevent, it really showed amazing performance at a low memory footprint, it might need some adjustments to your legacy code but then again the monkey patching of the socket module could help and I really love the cleanness of Greenlets. There has already been some reports of deploying Gevent successfully even with SQLAlchemy.

And if you want to dive into high performance websockets with lots of concurrent connections you really have to go with an asynchronous framework. Gevent seems like the perfect companion for that, at least that is what we are going to use.

大笨狗的广播  · · · · · ·  ( 全部 )

加入了Erlang小组

大笨狗的同城活动  · · · · · ·  ( 6个参加 · 4个感兴趣 )

大笨狗的线上活动  · · · · · ·  ( 全部 )


大笨狗参加的小组(236)  · · · · · ·  ( 全部 )

就怕流氓有文化
就怕流氓有文化 (19208)
Python编程
Python编程 (19001)
今晚我们读历史
今晚我们读历史 (26809)
“我的朋友”胡适之
“我的朋友”胡适之 (5692)
八○年代
八○年代 (63437)
C语言
C语言 (7475)
台灣 ♡  Touch Your Heart
台灣 ♡ Touch Your He... (32182)
中医
中医 (121032)

> 大笨狗添加的条目

本页永久链接: http://www.douban.com/people/agend/

订阅大笨狗的收藏:
feed: rss 2.0