delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <183c528b0710151107ka91ac22t485039dc78b99176@mail.gmail.com> |
Date: | Mon, 15 Oct 2007 14:07:22 -0400 |
From: | "Brian Mathis" <brian DOT mathis AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Best AVS to use with cygwin |
In-Reply-To: | <BB68A105182ACD4980177ABBE09017BB0591F2DC94@xch01-hqm-cdn.stw.int> |
MIME-Version: | 1.0 |
References: | <BB68A105182ACD4980177ABBE09017BB0591F2DC94 AT xch01-hqm-cdn DOT stw DOT int> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 10/15/07, Olivier Langlois <Olivier DOT Langlois AT streamtheworld DOT com> wrote: > Hi, > > I am currently using Kaspersky AVS but I am looking for a replacement because using it with Cygwin brings my system unstable whenever a bunch of child processes are spawn (ie: find . -name '*.h' -exec grep -l pattern {} \;'. Someone has even put the blame on Cygwin on their forum: [...] > Olivier Langlois While not exactly an answer to your question, generally using "find" with -exec is horribly inefficient. In many cases, you can get the same result by using: find -name '*.h' | xargs grep -l pattern Your version spawns a new grep process for every single file, while using xargs only spawns a new process when the max argument length has been reached. If the problem comes from kaspersky because of the process creation overhead, that would help you out a LOT. You'll probably also notice that your greps go much faster. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |