small optimization for python api

Brian Moon brianm at dealnews.com
Tue Aug 1 18:57:13 UTC 2006


> I wrote a small patch against python-memcached-1.31. This improved the speed 
> by 17% in my benchmark test.

I reran my tests from earlier using your patch.  You can download the
test code here: http://dealnews.com/developers/memcachedv2.html

Before patch:

# python getscl.py
0.086080789566
# python getscl.py
0.0853807926178
# python getscl.py
0.086639881134
# python getscl.py
0.0858130455017
# python getscl.py
0.0852749347687
# python getscl.py
0.0857470035553

After Patch:

# python getscl.py
0.0697109699249
# python getscl.py
0.066801071167
# python getscl.py
0.0687081813812
# python getscl.py
0.0698418617249
# python getscl.py
0.069904088974
# python getscl.py
0.0695850849152

Looks like about a 19% improvement to me.  My test is quite basic however.

> I'm sending this patch here, because the package does not specify who the 
> maintainer is, so I don't know where to send it.

I do believe it is these people: http://www.tummy.com/

-- 

Brian Moon
-------------
http://dealnews.com/
Its good to be cheap =)



More information about the memcached mailing list