performance issue

Mike Frysinger vapier at gentoo.org
Fri Feb 24 20:37:21 UTC 2006


On Friday 24 February 2006 14:37, Sterling Augustine wrote:
> Mike Frysinger wrote:
> > On Friday 24 February 2006 12:18, Sterling Augustine wrote:
> >
> > i know multibyte handling is slow (if it works at all), but are you
> > referring to normal ASCII string handling ?  if so, what target ?  are
> > you utilizing the C-only versions (which i would understand if they were
> > slow) or did you try the asm-tuned versions ?
>
> My original port to Xtensa, which originally used the c versions because
> I didn't know any better. When I did performance analysis, the problem
> showed right up, I subistituted my own hand-tuned asm, and performance
> matched the other c libs out there.

not surprised there by the performance of our C string functions ... so you 
ported uClibc to Xtensa ?  is that something you can contribute back ? :)

> In you are spending an inordinant amount of time in malloc, then you
> should probably write a custom allocator anyway.

and/or rethink your allocation schema ... doing something like a malloc in 
loops usually is a result of poor coding
-mike



More information about the uClibc mailing list