On Thu, Jul 30, 2009 at 09:46:44PM -0400, Perry E. Metzger wrote:
> 
> David Laight <d...@netbsd.org> 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: da...@l8s.co.uk

Reply via email to