Optimization

llewelly@xmission.com llewelly@xmission.com
Tue Apr 27 15:20:00 GMT 2004


Brian D. McGrew <brian@visionpro.com> writes:

> Yes, 4.5.3-SOLARIS is 10x faster than 4.7 on Solaris.  4.5.3-LINUX and
> 4.7-LINUX run about the same.
[snip]

This is a shot in the dark, but if you do a lot of output to cout and
    friends, try:

    std::ios_base::sync_with_stdio(false);

and see http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#8 on
    the same topic.



More information about the Gcc-help mailing list