Improve getColumns performance
@@ -523,14 +523,16 @@ export function setupKeySuggestions(runs) {
}
export function getColumns(runs) {
- let configColumns = _.uniq(
- _.flatMap(runs, run => _.keys(run.config)).sort(),
- ).map(col => 'config:' + col);
+ let configColumns = _.uniq(_.flatMap(runs, run => _.keys(run.config)))
+ .sort()
+ .map(col => 'config:' + col);
let summaryColumns = _.uniq(
- _.flatMap(runs, run => _.keys(run.summary))
- .filter(k => !k.startsWith('_') && k !== 'examples')
- .sort(),
- ).map(col => 'summary:' + col);
+ _.flatMap(runs, run => _.keys(run.summary)).filter(
+ k => !k.startsWith('_') && k !== 'examples',
+ ),
+ )
+ .sort()
+ .map(col => 'summary:' + col);
let sweepColumns =
runs && runs.findIndex(r => r.sweep) > -1 ? ['Sweep', 'Stop'] : [];
return ['Description'].concat(
