mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Performance
- Removed "std::endl" in cases where the autoflush is only going to slow things down.
This commit is contained in:
parent
1d3aa891d6
commit
eb2cb99532
11 changed files with 78 additions and 109 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue