php, python, perl, again.
Perrin Harkins
perrin at elem.com
Fri Jun 30 17:09:08 UTC 2006
Here are a couple of patches that should improve the performance of the
Perl version of Small.pm and SetGets.pm. These have nothing to do with
memcached, but fix some slow things in the testing code. The principles
here (slurp files, avoid C-style for loops) apply more generally to all
the rest, but I didn't bother to do all of them.
Note that you should never read a large file into memory in one go, like
you're doing in Large.pm. That will chew up too much RAM. You should
either let apache handle the file or chunk it yourself with repeated
reads and writes.
- Perrin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SetsGets.patch
Type: text/x-patch
Size: 386 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20060630/ca638823/SetsGets.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Small.patch
Type: text/x-patch
Size: 182 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20060630/ca638823/Small.bin
More information about the memcached
mailing list