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: bash backtick operator very slow


> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Igor Pechtchanski
>
> > ~$ time hostname
> > MY_HOSTNAME
> > real    0m0.111s
> > user    0m0.060s
> > sys     0m0.040s
> > [...]
> >
> > ~$ time echo `hostname`
> > MY_HOSTNAME
> > real    0m6.175s
> > user    0m0.060s
> > sys     0m0.050s
> >
> > ..and that was a fast one.  Usually it takes > 7 seconds.
>
> Does <http://cygwin.com/ml/cygwin/2005-03/msg00730.html> help?
>

Thanks; that's it exactly, Igor.  I was focusing on the backtick, but it
seems to have something to do with spawning shells while there is ANY
low-priority process sucking up all the idle CPU.

The latest cygwin1.dll snapshot solved this problem.  I didn't find the
answer in my searches because I was focusing on bash & backticks...

Neal


--
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]