Performance

- Removed "std::endl" in cases where the autoflush is only going to
  slow things down.
This commit is contained in:
Paul Beckingham 2010-10-02 12:02:06 -04:00
parent 1d3aa891d6
commit eb2cb99532
11 changed files with 78 additions and 109 deletions

View file

@ -314,7 +314,7 @@ void Tree::dumpNode (Tree* t, int depth)
if (tags.length ())
std::cout << " \033[32m" << tags << "\033[0m";
std::cout << std::endl;
std::cout << "\n";
// Recurse for branches.
for (int i = 0; i < t->branches (); ++i)
@ -324,7 +324,7 @@ void Tree::dumpNode (Tree* t, int depth)
////////////////////////////////////////////////////////////////////////////////
void Tree::dump ()
{
std::cout << "Tree (" << count () << " nodes)" << std::endl;
std::cout << "Tree (" << count () << " nodes)\n";
dumpNode (this, 1);
}