Subject: Re: CVS commit: basesrc/libexec/ld.elf_so
To: Bang Jun-Young <junyoung@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: source-changes
Date: 12/06/2002 13:30:18
Bang Jun-Young wrote:

> > >From the diff, it seems we now unconditionally strlen() each path which
> > means that the full length of the path is read and checked (looking for
> > the NUL byte) instead of the strcmp() stopping at the first different
> > byte.  What was the number of strlen() calls before and after this
> > change?  Maybe also interesting would be the average path length...
> 
> n(strlen()): 0 -> ~580 

So ~1/10th the number of strcmp() calls.  That's good enough for me :-)

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/