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...


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.  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.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


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