Message-ID: <000d01c22f88$f6616170$0100a8c0@p4> From: "Andrew Cottrell" To: , "Richard Dawe" References: <3D389A5F DOT D9813428 AT phekda DOT freeserve DOT co DOT uk> Subject: Re: DJGPP 2.04 performance & size Date: Sat, 20 Jul 2002 11:00:50 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp-workers AT delorie DOT com > > On Mon, 17 Jun 2002 sandmann AT clio DOT rice DOT edu wrote: > > > > > > In other words, does most of the difference come from globbing (which > > > > would point to `glob' and `findfirst') or from `stat' (which probably > > > > means we are paying for the symlink support)? ..SNIP.. There were allot of changes in stat and lstat becuase of bugs in 2K/XP. The timing may be dependant on the OS you are using, I would expect it to run slower on 2K/XP due to the workarrounds that are needed. There are also other cases where 2K/XP will take a penalty hit because of the bugs in the low level int 21 api. There may be ways to optimise the code in stat and lstat, but when the code was originally modified it was done so that stat/lstat were backward compatible and also worked on 2K/XP. > Fileutils 4.1 against 2.03: > > real 0m50.700s > user 1m41.429s > sys 0m0.000s > > Fileutils 4.1 against HEAD: > > real 0m59.650s > user 1m59.341s > sys 0m0.000s ..SNIP.. What OS were the tests produced on? Hope this helps. Andrew