[RFC] PR6015, snprintf, glibc2.3 and all that...
Paolo Carlini
pcarlini@unitus.it
Thu Apr 4 09:56:00 GMT 2002
Ulrich Drepper wrote:
>On Thu, 2002-04-04 at 01:35, Paolo Carlini wrote:
>
>>is cute, nice, MT-safe, and it will work (with glibc2.3) but I'm still
>>
>>getting a feeling of "overkilling"... Don't you?
>>
>
>No. Use uselocale() call will be about 5 instructions, i.e., not
>measureable.
>
I did'nt know about this. Thanks.
> The calls to a generic snprintf function are more
>expensive than absolutely necessary but in the end will be faster than
>what you'll have to do for other platforms. The implementation is more
>optimized and no post-processing to reflect the locale is needed.
>
I see. Could you possibly have a look at my latest ready-to-be-destroyed
;-) idea?
http://gcc.gnu.org/ml/libstdc++/2002-04/msg00068.html
Thanks!
Paolo.
More information about the Libstdc++
mailing list