Source-Changes-D archive

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

Re: CVS commit: src/lib/libc/string



On Thu, Jul 30, 2009 at 09:46:44PM -0400, Perry E. Metzger wrote:
> 
> David Laight <dsl%netbsd.org@localhost> writes:
> > Module Name:        src
> > Committed By:       dsl
> > Date:               Thu Jul 30 21:42:06 UTC 2009
> >
> > Modified Files:
> >     src/lib/libc/string: strcspn.c strspn.c
> >
> > Log Message:
> > Use a 'register only' str[c]spn() on 64 bit systems.
> 
> How much of a speedup is this?

It probably takes about 2/3 the time on my athlon.
I got similar times with some tests on f.n.o (some intel cpu).
The gain is missing out the 3 clock delay on every memory read.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index