mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-07 21:07:20 +02:00
Performance: Only measures the first fixed-width column row
This commit is contained in:
parent
a883c5ca41
commit
61e1401073
10 changed files with 49 additions and 17 deletions
|
@ -143,6 +143,11 @@ std::string ViewTask::render (std::vector <Task>& data, std::vector <int>& seque
|
|||
|
||||
if (min > global_min) global_min = min;
|
||||
if (ideal > global_ideal) global_ideal = ideal;
|
||||
|
||||
// If a fixed-width column was just measured, there is no point repeating
|
||||
// the measurement for all tasks.
|
||||
if (_columns[i]->is_fixed_width ())
|
||||
break;
|
||||
}
|
||||
|
||||
if (print_empty_columns || global_min != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue