Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Sat, 8 Sep 2001 20:16:40 -0400 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: cygwin slowdown in current cvs version Message-ID: <20010908201640.B22847@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <130160175780 DOT 20010908204017 AT logos-m DOT ru> <127165775081 DOT 20010908221336 AT logos-m DOT ru> <186168543292 DOT 20010908225944 AT logos-m DOT ru> <20010908155203 DOT C12571 AT redhat DOT com> <20010908222326 DOT B937 AT cygbert DOT vinschen DOT de> <20010908164412 DOT B13528 AT redhat DOT com> <999994387 DOT 9504 DOT 118 DOT camel AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <999994387.9504.118.camel@lifelesswks> User-Agent: Mutt/1.3.21i On Sun, Sep 09, 2001 at 10:13:06AM +1000, Robert Collins wrote: >On Sun, 2001-09-09 at 06:44, Christopher Faylor wrote: >> On Sat, Sep 08, 2001 at 10:23:26PM +0200, Corinna Vinschen wrote >> >> If we were going to do that, though, we should set up one global "change >> notification" handle for /etc/group and /etc/passwd, right? > >After a quick MSDN scan, I couldn't see any per file scanning mechanism. >which means notification on /etc is about it (barring fancy tricks like >/etc/changingdata/passwd and /etc/passwd->changindata/passwd :]) A google search reveals some undocumented calls that allow you to track all sorts of things. After a little more testing, it seems like the slowdown is actually due to the FindFirstChangeNotification call. If I add that and avoid the WaitForSingleObject, I still get a noticeable slowdown. cgf