Re: Program inefficiency?



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!
.



Relevant Pages

  • Re: odd problem with watsup and VB6 application with modal dialog
    ... At this point, the python interpreter ... clicks the button then hangs. ... Is this a normal behaviour for watsup with modal windows? ... def _buildWinLong: ...
    (comp.lang.python)
  • Re: Balloon Taskbar Popup for Windows XP
    ... Mark Hammond's pywin32 extensions support notification icons but not balloon popups. ... The Windows NOTIFYICONDATA structure in newer shell versions contains more fields, required to show a balloon tooltip, but it is incompatible with earlier versions ... def show_balloon: ... "I" # HWND hWnd; ...
    (comp.lang.python)
  • Re: [QUIZ] The Golden Fibonacci Ratio (#69)
    ... The rectangles are drawn fairly satisfactorily, ... I also added a bunch of command line options for windows: ... def self.moveall y,x ...
    (comp.lang.ruby)
  • Re: oddness in super()
    ... def meth: super.meth ... However, when I try this, which works on windows, with ActiveState ... When a class object is called, a new class instance is created and returned. ... print "Cold", repr, "derives from", reprsuper.__init__ ...
    (comp.lang.python)
  • Re: [QUIZ] The Golden Fibonacci Ratio (#69)
    ... I used this quiz as an excuses to get Ncurses-ruby running on my ... I also added a bunch of command line options for windows: ... def self.moveall y,x ...
    (comp.lang.ruby)