This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: find . -regex '.*js' -type f -exec md5sum '{}' \\; really slow!


Hello Bartolomeo,

* On Mon, Nov 24, 2008 at 04:27:29PM +0100 Bartolomeo Nicolotti wrote:
 
> /usr/bin/find . -type f -exec md5sum '{}' \\;
[...]
> Could some one help me to speed-up things on windows+cygwin?

Just a guess:

/usr/bin/find . -type f|xargs md5sum

(Background: I expect the execution of md5sum to take much time. Thus,
with the xargs approach, I make sure the md5sum is called less times,
with more than one parameter each time - which will *hopefully* decrease
the time)

HTH,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]