delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/22/23:53:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040622234112.032a1838@pop.prospeed.net>
X-Sender:
Date: Tue, 22 Jun 2004 23:47:05 -0400
To: cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: higher-level IO very slow with cygwin1.dll 5.10 (due to set_flags?)
In-Reply-To: <20040623034247.GD21621@trixie.casa.cgf.cx>
References: <1087960457 DOT 1fmsxb98l18g AT webmail DOT express56 DOT com> <20040623034247 DOT GD21621 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0

At 11:42 PM 6/22/2004, you wrote
>On Tue, Jun 22, 2004 at 11:14:17PM -0400, sevenrider AT express56 DOT com wrote:
>>I am just asking again about this problem in the hopes that someone
>>might have anything to suggest.  It seems that fopen is 10 to 20 times
>>slower than open on my I/O operations due to large delays in executing
>>a system call "set_flags".  I will have to rewrite all my code and
>>abandon most of the text utility programs like "grep" and "sort" unless
>>I can figure out what is going on.
>
>Seems like if you are going to go to the effort of rewriting everything
>you might first want to debug cygwin and find out where the time is
>going...


Dag-namit!  CGF beat me to the punch. :-)  I would only add
that there are two "set_flag" routines.  One in path.cc, the 
other in fhandler.h/fhandler.cc.  They don't do allot.  Just 
setting flags really (who would have guessed? ;-) ) and no one 
has fiddled with these in the 1.5.10 time-frame.  It's hard to 
imagine that either of these routines are what's responsible
for all the time you see lost.  

CGF is right (who would have guessed! ;-) ).  Debugging the 
internals a little bit would be time well spent, especially 
given the alternative you describe.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019