Program inefficiency?

Grant Edwards grante at
Sat Sep 29 18:38:49 CEST 2007

On 2007-09-29, hall.jeff at <hall.jeff at> wrote:

> I'm not sure what an shell+sed script is...

Unfortuantely it appears you're using Windows (a partucular bad
choice for this sort of file processing).  You can, however,
get bash and sed for Windows if you wish:

> In case it helps... We started with only 6 loops of replacecycle() but
> had to keep adding progressively more as we found more and more links
> with lots of spaces in them...

I would think with the correct RE's you'd only have to call it

> As we did that, the program's time grew progressively longer
> but the length grew multiplicatively with the added number of
> cycles... This is exactly what I would have expected and it
> leads me to believe that the problem does not lie in the
> replacecycle() def but in the masseditor() def... *shrug*

As the program runs on progressively more files does the
process's memory usage grow without bounds?  Does the machine
start swapping?

Grant Edwards                   grante             Yow!  I'm pretending that
                                  at               we're all watching PHIL
                                 SILVERS instead of RICARDO

More information about the Python-list mailing list