Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/libexec/ld.elf_so



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@localhost>
NetBSD Support and Service:         http://www.wasabisystems.com/



Home | Main Index | Thread Index | Old Index