optimizing a program that just shuffles data, a bit like cat...

Oracle nospam at nowhere.com
Fri Sep 23 11:18:47 EDT 2005


On Fri, 23 Sep 2005 01:16:46 +0000, Dan Stromberg wrote:

> 
> ...but with much bigger blocksizes, and with a netcat-like ability to use
> sockets.
> 

Try using psyco and see if that helps.  Also, sometimes smaller blocks are
better than large blocks.  Try using smaller block sizes and see if that
helps.

If you're worried about the time required to calculate the length of your
block, try calculating it once and pass the length around.  Is that doable?





More information about the Python-list mailing list