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: higher-level IO very slow with cygwin1.dll 5.10 (due to set_flags?)


At 11:42 PM 6/22/2004, you wrote
>On Tue, Jun 22, 2004 at 11:14:17PM -0400, sevenrider@express56.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/


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