自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (7)
  • 收藏
  • 关注

原创 使用python logging处理多机多进程写同一个日志文件

MemoryHandler的性能问题: 如果target是StreamHandler的子类 上是有严重的IO性能问题 是一个for调用handler, handler中的处理侧是 io.write(), io.flush() 立马的flush到硬盘中,并有多次flush,io性能很差 logging模块本身是支持多线程写同一个文件的。但对多进程写同一个文

2012-11-08 16:17:46 9239 1

转载 nginx 限制ip并发数和限制速度

nginx限制ip并发数,也是说限制同一个ip同时连接服务器的数量 1.添加limit_zone  这个变量只能在http使用  vi /usr/local/nginx/conf/nginx.conf  limit_zone one $remote_addr 10m; 2.添加limit_conn  这个变量可以在http, server, location使用  我只限制一

2012-11-06 09:48:18 1224

原创 python 的时间操作datetime ,不支持减年或月阿!!自己实现

下面是python 的时间运算操作,不支持减年或月阿。 datetime.timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)# 看上面日期比较的timedelta不支持年与月,只支持

2012-11-01 17:33:40 2970

pycrypto-2.6.win32-py2.6.ex

pycrypto-2.6.win32-py2.6.exe

2013-03-06

leveldb-0.1 for windows support XP.win32-py2.6.exe

leveldb-0.1 for windows support XP.win32-py2.6.exe 上次上传的一个版本不支持xp,此版本支持xp

2012-12-28

python-leveldb 32位 windows

python-leveldb库, python2.6 32位 for windows

2012-12-27

python-cjson-1.0.5.win32-py2.6.exe

python-cjson-1.0.5.win32-py2.6.exe

2012-06-14

ujson-1.18.win32-py2.6.exe

ujson-1.18.win32-py2.6.exe python的json极速解释库,windows版 在我机子上跑出来的结果 D:\src\ujson-1.18\tests>python benchmark2.py ujson decode : 404.85833 calls/sec simplejson decode : 33.34445 calls/sec cjson decode : 246.91360 calls/sec ujson encode : 460.82948 calls/sec simplejson encode : 4.23280 calls/sec cjson encode : 87.03219 calls/sec

2012-06-14

devcpp-4.9.9.2_setup.exe

devcpp-4.9.9.2_setup.exe

2007-11-20

深入浅出ARM7-LPC213x_214x(上)

深入浅出ARM7 深入浅出ARM7-LPC213x_214x(上

2007-11-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除