> W.r.t console printing, we've found that on windows, using std::cout/cerr is 
> 20
> times slower than printf. std::ofstream is on par with fprintf/printf however.

on a side note (perhaps you already know this): if you use endl to end a 
line, the cout stream is flushed every time. this might cause the 
slowdown. using \n for linebreaks ist much faster. there's also the 
explicit cout.flush() method.

cheers,
simon

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to