Re: improve performance of a script

2014-03-26 Thread Eduardo A . Bustamante López
(I forgot to CC the list in my first reply) On Tue, Mar 25, 2014 at 07:12:16AM -0700, xeon Mailinglist wrote: > For each file inside the directory $output, I do a cat to the file and > generate a sha256 hash. This script takes 9 minutes to read 105 files, with > the total data of 556MB and gener

Re: improve performance of a script

2014-03-26 Thread Greg Wooledge
On Wed, Mar 26, 2014 at 12:54:12PM +, Pádraig Brady wrote: > On 03/25/2014 02:12 PM, xeon Mailinglist wrote: > > For each file inside the directory $output, I do a cat to the file and > > generate a sha256 hash. This script takes 9 minutes to read 105 files, with > > the total data of 556MB and

Re: improve performance of a script

2014-03-26 Thread Pádraig Brady
On 03/25/2014 02:12 PM, xeon Mailinglist wrote: > For each file inside the directory $output, I do a cat to the file and > generate a sha256 hash. This script takes 9 minutes to read 105 files, with > the total data of 556MB and generate the digests. Is there a way to make this > script faster?

improve performance of a script

2014-03-26 Thread xeon Mailinglist
For each file inside the directory $output, I do a cat to the file and generate a sha256 hash. This script takes 9 minutes to read 105 files, with the total data of 556MB and generate the digests. Is there a way to make this script faster? Maybe generate digests in parallel? for path in $output