Re: Slow bash script

2007-09-10 Thread Andrew Sackville-West
On Mon, Sep 10, 2007 at 04:30:26PM +0200, Thomas Jollans wrote: > > how about ``set -x'' and let the shell do it for you ? d'oh... A signature.asc Description: Digital signature

Re: Slow bash script

2007-09-10 Thread Thomas Jollans
On Sunday 09 September 2007, Andrew Sackville-West wrote: > On Sun, Sep 09, 2007 at 05:35:12PM -0400, Marty wrote: > > Andrew Sackville-West wrote: > >> On Sun, Sep 09, 2007 at 04:23:42PM -0400, Marty wrote: > >>> The following script seems to run abnormally slow on a 400Mhz Sarge > >>> system, get

Re: Slow bash script

2007-09-09 Thread Marty
Andrew Sackville-West wrote: On Sun, Sep 09, 2007 at 05:35:12PM -0400, Marty wrote: Andrew Sackville-West wrote: On Sun, Sep 09, 2007 at 04:23:42PM -0400, Marty wrote: The following script seems to run abnormally slow on a 400Mhz Sarge system, getting only about one iteration per second in the

Re: Slow bash script

2007-09-09 Thread Andrew Sackville-West
On Sun, Sep 09, 2007 at 05:35:12PM -0400, Marty wrote: > Andrew Sackville-West wrote: >> On Sun, Sep 09, 2007 at 04:23:42PM -0400, Marty wrote: >>> The following script seems to run abnormally slow on a 400Mhz Sarge >>> system, getting only about one iteration per second in the while loop. >>> I

Re: Slow bash script

2007-09-09 Thread Marty
Andrew Sackville-West wrote: to clarify, you've done something to the normal .bz2 Packages files, I gather (like unzipped them, right?) and perhaps in the process you've mutated them into some other form resulting in more than one line of data being crammed into $inputline. just a thought. The

Re: Slow bash script

2007-09-09 Thread Marty
Andrew Sackville-West wrote: On Sun, Sep 09, 2007 at 04:23:42PM -0400, Marty wrote: The following script seems to run abnormally slow on a 400Mhz Sarge system, getting only about one iteration per second in the while loop. It extracts md5sums from a 180k Packages file and makes an indices file

Re: Slow bash script

2007-09-09 Thread Andrew Sackville-West
On Sun, Sep 09, 2007 at 02:02:16PM -0700, Andrew Sackville-West wrote: > On Sun, Sep 09, 2007 at 04:23:42PM -0400, Marty wrote: > > The following script seems to run abnormally slow on a 400Mhz Sarge system, > > getting only about one iteration per second in the while loop. It extracts > > md5su

Re: Slow bash script

2007-09-09 Thread Andrew Sackville-West
On Sun, Sep 09, 2007 at 04:23:42PM -0400, Marty wrote: > The following script seems to run abnormally slow on a 400Mhz Sarge system, > getting only about one iteration per second in the while loop. It extracts > md5sums from a 180k Packages file and makes an indices file. I've narrowed > down

Slow bash script

2007-09-09 Thread Marty
The following script seems to run abnormally slow on a 400Mhz Sarge system, getting only about one iteration per second in the while loop. It extracts md5sums from a 180k Packages file and makes an indices file. I've narrowed down the slowdown to the lines in the while loop starting with "sea