From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert Collins" To: Subject: Re: Optimizing away "ReadFile" calls when Make calls stat() Date: Wed, 14 Feb 2001 00:17:00 -0000 Message-id: <005d01c0965e$b858bf50$0200a8c0@lifelesswks> References: <4.3.1.2.20010213134821.019a7130@pop.ma.ultranet.com> <20010213190131.14369.qmail@lizard.curl.com> <200102131935.OAA09136@envy.delorie.com> <20010213194612.17311.qmail@lizard.curl.com> <200102131954.OAA09284@envy.delorie.com> <20010213152313.A12830@redhat.com> <39319402546.20010214110838@logos-m.ru> X-SW-Source: 2001-02/msg00741.html ----- Original Message ----- From: "Egor Duda" To: Sent: Wednesday, February 14, 2001 7:08 PM Subject: Re: Optimizing away "ReadFile" calls when Make calls stat() > Hi! > not meaning to be too pushy ;), but i'd like to bring the thread > > http://sources.redhat.com/ml/cygwin-developers/2000-03/msg00077.html > > back to life. I have to say, that not only ReadFile() is slowing things > up, but CreateFile() too. i tend to think that cygwin- (or win32-) > specific parts in ported applications are unavoidable evil (and > "make" sources are already full of them). > > giving porter a single universal tool to be more specific about what > he wants to get from stat() has one more benefit. otherwise, porter > will tend to use different native win32 calls such as GetFileTime(), > GetFileAttributes(), GetFileSize() etc. which are harder to find in > large source tree when needed. with stat_lite he had just to do the > simple grep. > > the only problem with this approach i can see is that if we introduce > new API and applications start to use it we became "bound" to it and > it'll be not too easy to deprecate ad remove it afterwards. OTOH, we > can always make stat_lite() a simple wrapper to stat() if the latter > become fast enough. > Perhaps a macro for each hint, that porters who have read up on cygwin can use? Rather than change the cygwin API, have a macro that calls GetFileTime() etc as appropriate... that way cygwin itself is not altered or tied to anything ? Rob -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple