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: "joerg dot richter at pdv-fs dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2005 15:41:07 -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 joerg dot richter at pdv-fs dot de 2005-01-26 15:41 -------
> ;) No, I mean *relative* percentages: setlocal in your profile is on top,
higher
> than __convert_from_v and everything else. I'm asking: is consuming 1%, 10%,
or
> 99% of the total runtime?
Doesn't a function that is on 99% of all call stacks automatically consume 99%
of the runtime? Ok, the time can also be spend in the childs like here in
__issetuid, but this is an implementation detail of setlocale, isn't it?
> In this case, can you possibly check whether, for some reason, snprintf is
> slower than sprintf, on AIX?
I rewrote the original program to use snprintf and got the same time as with
sprintf.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19642