mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
0362b41f3b
commit
3f418c6fdc
4 changed files with 67 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue