This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2005 16:56:20 -0000
- Subject: [Bug libstdc++/19642] streaming doubles is very slow compared to sprintf
- References: <20050126142651.19642.joerg.richter@pdv-fs.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-01-27 16:56 -------
> There's known problems with setlocale not being "stable" on AIX.
Thanks for the pointer. I can find only some rather vague hints, around,
however... "(un)stable"?!? Or 'just' plain slow?!? ;) ;)
> You're right, the correct long term fix is something like Jerry's work in
> 17140.
Beyond doubt. Avoiding completely *any* sort of setlocale/uselocale would fix
those issues completely. However, short and mid-term, the latest attached
patch (*_3) does a good job and seems safe (already checked on glibc (generic)
+ FreeBSD + Solaris).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19642