This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: PPC optimizations?
- To: erammsu@kieray1.p.y.ki.era.ericsson.se
- Subject: Re: PPC optimizations?
- From: Geoff Keating <geoffk@ozemail.com.au>
- Date: Fri, 4 Jun 1999 12:29:43 +1000
- CC: libc-alpha@sourceware.cygnus.com
- References: <37568A2F.C73EAD6B@kieray1.p.y.ki.era.ericsson.se>
> Mailing-List: contact libc-alpha-help@sourceware.cygnus.com; run by ezmlm
> Date: Thu, 03 Jun 1999 15:59:11 +0200
> From: Marcus Sundberg <erammsu@kieray1.p.y.ki.era.ericsson.se>
>
> Hi,
>
> is anyone working on PPC optimizations for glibc?
> I just lifted in the memmove() code from the Linux kernel into glibc,
> and a simple test showed a 110% performance increase on both memcpy()
> and memmove()!
The memcpy() and related functions are waiting for someone to
implement emulation of misaligned string operations in the kernel,
which should improve things much more than a mere factor-of-two :-),
especially for short memcpy()s.
However, in the meantime, there's no reason not to put these versions
in (except for the licensing, of course).
How did you time them?
> The reason I'm asking if anyone is working on this is that the kernel
> code is under normal GPL, so I need to know if I should spend time
> on either asking the author to change the license to LGPL or reimplement
> them under LGPL myself.
--
Geoffrey Keating <geoffk@ozemail.com.au>