mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user