[PATCH 13/13] string: Add errname_np and errdesc_np

Florian Weimer fweimer@redhat.com
Tue Jun 2 17:19:43 GMT 2020

* Adhemerval Zanella:

> I have removed the constant length variable, however for the extra relocations


> from the string array I am not sure if this is really an
> improvement. The array is exported as compat symbol (we can't skip its
> definition) and to fully optimize it would require to use a different
> data structure (such as string containing all definitions plus a array
> of indexes) which would require to duplicate some definition (at least
> the extra index map).
> It might be a gain for architectures that does not have to provide the
> compat symbols, but it increases memory usage a bit for the default
> case (without much gain in relocation time spent).

Sure, for the description arrays.  But aren't the name arrays new?


More information about the Libc-alpha mailing list