This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix newlocale, uselocale, duplocale, is*_l and to*_l


> And while we are at it: the various strdups should be collapsed.  The 
> individual memory allocations are rather expensive.  Just collect the 
> sizes of the names while iterating over the locales and allocate one 
> chunk of memory.  The size doesn't have to be exact.  When newlocale is 
> called with base != NULL the memory block can be resized (if necessary).

Ok, will do.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]