[GLIBC][PATCH v2] Remove strdup inlines

Florian Weimer fweimer@redhat.com
Mon Dec 12 15:00:00 GMT 2016


On 12/12/2016 02:02 PM, Wilco Dijkstra wrote:
> Remove the str(n)dup inlines from string/bits/string2.h.  Although inlining
> calls with constant strings shows a small (~10%) performance gain, strdup is
> typically used in error reporting code, so not performance critical.

Where do the performance gains come from?

Is it from IFUNC selection for strlen and memcpy, which does not happen 
in libc.so?

I don't think it's true that strdup is mostly used for error reporting. 
Why do you think so?

Thanks,
Florian



More information about the Libc-alpha mailing list