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

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Jun 2 17:20:57 GMT 2020



On 02/06/2020 14:19, Florian Weimer wrote:
> * Adhemerval Zanella:
> 
>> I have removed the constant length variable, however for the extra relocations
> 
> Thanks.
> 
>> 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?

Indeed, I think we can optimize it. I will send a new version.


More information about the Libc-alpha mailing list