]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Avoid using std::endl, since it calls flush() -- which we don't really need after...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Dec 2005 23:23:08 +0000 (23:23 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Dec 2005 23:23:08 +0000 (23:23 +0000)
commit99624c230bd483d21d4b366f53061d4edf7b0ac8
tree9fd3b59d7f28e50052afffd311b56c05c718f48f
parentd2adc7844e8103004e99e1e4e3ff31ff4a82909e
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.