[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overwriting printings

Craig Markwardt wrote:

> Since you are on Unix, you can try STATUSLINE, available from my web
> page.  It does exactly this sort of thing.
> http://cow.physics.wisc.edu/~craigm/idl/idl.html    (under Misc)
> If the output truly dominates the processing speed then of course you
> could only output every 10th or 100th iteration.  You're still not
> missing much if there are 10^6 iterations.

Output certainly does dominate the speed.

At 10000 iterations, printing every line takes 2m49s, overwriting each line
takes 1m05s, and printing nothing takes 0m20s.

I think your script will be worth looking at :)