This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] PR6015, snprintf, glibc2.3 and all that...
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 04 Apr 2002 19:57:41 +0200
- Subject: Re: [RFC] PR6015, snprintf, glibc2.3 and all that...
- References: <1017942770.26458.160.camel@akkadia.org>
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.