Brian D. McGrew <brian@xxxxxxxxxxxxx> 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.