[RFC] PR6015, snprintf, glibc2.3 and all that...
Ulrich Drepper
drepper@redhat.com
Thu Apr 4 09:52:00 GMT 2002
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 `------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020404/f2ad9eab/attachment.sig>
More information about the Libstdc++
mailing list