Performance

- Made Table::optimize a public method.
- Table::optimize called only from handleReportGHistory, where it's
  needed.
- Retaining benchmark.txt, to allow further improvements.
This commit is contained in:
Paul Beckingham 2009-03-08 21:29:55 -04:00
parent 0362b41f3b
commit 3f418c6fdc
4 changed files with 67 additions and 7 deletions

View file

@ -1205,7 +1205,11 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf)
else
out << "No tasks." << std::endl;
return out.str ();
// Eliminate redundant color codes.
std::string optimized = out.str ();
table.optimize (optimized);
return optimized;
}
////////////////////////////////////////////////////////////////////////////////