This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf


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


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