This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Volunteer to rewrite string functions
- To: bonzini at gnu dot org
- Subject: Re: Volunteer to rewrite string functions
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 27 Feb 2001 07:51:48 -0800
- Cc: libc-alpha at sources dot redhat dot com
- References: <Pine.LNX.4.10.10102271622070.7665-100000@pc-amo3.elet.polimi.it>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it> writes:
> I have rewritten the string functions strlen, strchr, strrchr, memchr,
> strcat, strcpy, stpcpy so that they all use a parallel algorithm
> (currently, the last three do not) and use a better one on little-endian
> machines (similar to that employed by the optimized SPARC versions).
Nothing like this will be accepted without performance data. I very
much doubt that these will improve anything (actually, I expect it the
other way round). Find out what the average distribution of string
lengths etc is and make up a test suite. You'll most probably see
that all the startup costs are far too high. This is especially true
for nonsense like MMX.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------