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

Dan Stromberg strombrg at dcs.nac.uci.edu
Fri Sep 23 12:15:51 EDT 2005


On Fri, 23 Sep 2005 10:18:47 -0500, Oracle wrote:

> On Fri, 23 Sep 2005 01:16:46 +0000, Dan Stromberg wrote:
> 
>> [quoted text muted]
> 
> 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.

I like the psyco idea, but I'm on an AIX system with a powerpc CPU, rather
than an x86 CPU.

> 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?

AFAIK, that's what I've been doing...

Thanks!




More information about the Python-list mailing list