This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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: [RFC] PR6015, snprintf, glibc2.3 and all that...


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.



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