Performance: Only measures the first fixed-width column row

This commit is contained in:
Paul Beckingham 2015-04-05 16:05:43 -04:00
parent a883c5ca41
commit 61e1401073
10 changed files with 49 additions and 17 deletions

View file

@ -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)