perf(main): overlap independent fs probes; skip per-entry copies (#39729)

* perf(main): overlap independent fs probes on git status, agent detection and orcad startup

* perf: skip per-entry copies in git change list and tab hydration; drop unused activity barrel
This commit is contained in:
Neil
2026-11-08 05:05:19 -08:00
committed by GitHub
parent 537d764f58
commit 656a05de0d
8 changed files with 56 additions and 66 deletions
+5 -1
View File
@@ -59,5 +59,9 @@ export function parseGitChangeList(
return entries
}
const statsByPath = parseNumstat(stdout.slice(offset))
return entries.map((entry) => ({ ...entry, ...statsByPath.get(entry.path) }))
// Why in place: entries are local records built above, so mutation is unobservable.
for (const entry of entries) {
Object.assign(entry, statsByPath.get(entry.path))
}
return entries
}