delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/17/12:20:44

Date: Mon, 17 Jun 2002 19:15:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: sandmann AT clio DOT rice DOT edu
cc: djgpp-workers AT delorie DOT com
Subject: Re: DJGPP 2.04 performance & size
In-Reply-To: <10206171500.AA16601@clio.rice.edu>
Message-ID: <Pine.SUN.3.91.1020617191254.11418A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv 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)?
> 
> The time for djecho seems to be the same for V2.03 and CVS, around 
> 4 seconds (with about 1 second accuracy ...)

That means the problem is probably in `stat'.  It would be interesting to 
profile two binaries of `ls', one from CVS, the other built with v2.03 or 
earlier, and see what portion does `stat' take.

> In the above example there's no globbing, but it does seem that 
> findfirst isn't the slowdown.

Yes.

- Raw text -


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