]> https://gitweb.dealii.org/ - dealii.git/commit
Avoid using std::endl, since it calls flush() -- which we don't really need after...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 20 Dec 2005 23:23:08 +0000 (23:23 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 20 Dec 2005 23:23:08 +0000 (23:23 +0000)
commit50ef680dcce27d5bf6d835a765530646f51251fb
tree43ad81981003d40ccba7e169c2af75af52b05d50
parent3d75154d85c7b708baab4d365f60c5f1939c919f
Avoid using std::endl, since it calls flush() -- which we don't really need after every line has been output, but that incurs a significant overhead in terms of system calls. By replacing all uses of std::endl by '\n', John Henning reports that the number of system calls for the SPEC testcase has dropped from 2,157,042 to 15,811.

Instead of std::endl therefore use '\n' and explicitly call flush() at the end of output functions.

git-svn-id: https://svn.dealii.org/trunk@11902 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/base/source/data_out_base.cc
deal.II/deal.II/source/grid/grid_out.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.