Re: Program inefficiency?
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Sat, 29 Sep 2007 16:38:49 -0000
On 2007-09-29, hall.jeff@xxxxxxxxx <hall.jeff@xxxxxxxxx> wrote:
I'm not sure what an shell+sed script is...
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_05_01.html#sect_05_01_01
http://tldp.org/LDP/Bash-Beginners-Guide/html/chap_05.html
http://www.grymoire.com/Unix/Sed.html
http://www.gnu.org/software/bash/
http://en.wikipedia.org/wiki/Bash
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:
http://www.cygwin.com/
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
once.
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
visi.com SILVERS instead of RICARDO
MONTALBAN!
.
- Follow-Ups:
- Re: Program inefficiency?
- From: hall . jeff
- Re: Program inefficiency?
- References:
- Program inefficiency?
- From: hall . jeff
- Re: Program inefficiency?
- From: Grant Edwards
- Re: Program inefficiency?
- From: hall . jeff
- Program inefficiency?
- Prev by Date: Re: Python 3.0 migration plans?
- Next by Date: Re: Program inefficiency?
- Previous by thread: Re: Program inefficiency?
- Next by thread: Re: Program inefficiency?
- Index(es):
Relevant Pages
|