Re: Assembly string functions in i386 libc
- From: "Sean C. Farley" <scf@xxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 18:43:00 -0500 (CDT)
On Wed, 11 Jul 2007, Matthew Dillon wrote:
Long ago I decided that strlen() was simply not in the critical
path for virtually any program. A few nanoseconds here or there is
not going to result in any noticeable improvement for any program
other then a benchmark designed to test strlen(). It isn't worth
the effort to optimize.
Since strlen() is used in every program directly or indirectly through
libc, I thought it was beneficial to make it faster. In the case of
i386, the C version used by all the other architectures, except for ARM,
is much faster that the assembly version. This is without any
optimization on its part.
I need to test out grep (FreeGrep) to see how it behaves when calling
regexec() (may use strlen() in certain cases) many times (i.e., grep -R
on the source tree) using both versions.
Sean
--
scf@xxxxxxxxxxx
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Assembly string functions in i386 libc
- From: Dag-Erling Smørgrav
- Re: Assembly string functions in i386 libc
- From: Matthew Dillon
- Re: Assembly string functions in i386 libc
- References:
- Assembly string functions in i386 libc
- From: Sean C. Farley
- Re: Assembly string functions in i386 libc
- From: Peter Jeremy
- Re: Assembly string functions in i386 libc
- From: Matthew Dillon
- Assembly string functions in i386 libc
- Prev by Date: Re: Assembly string functions in i386 libc
- Next by Date: Re: Assembly string functions in i386 libc
- Previous by thread: Re: Assembly string functions in i386 libc
- Next by thread: Re: Assembly string functions in i386 libc
- Index(es):