perf(main): reuse worker cached summaries
This commit is contained in:
parent
8f1e223d61
commit
933bf9532d
1 changed files with 2 additions and 2 deletions
|
|
@ -645,7 +645,7 @@ function applyCachedTaskReadResult(
|
|||
bumpSkipReason(taskDiag.skipReasons, cached.skipReason);
|
||||
return;
|
||||
}
|
||||
tasks.push(cloneCached(cached.task));
|
||||
tasks.push(cached.task);
|
||||
}
|
||||
|
||||
function pruneTaskFileCache(
|
||||
|
|
@ -960,7 +960,7 @@ async function listTeams(
|
|||
if (dependencyFingerprint.cacheSafe && cached?.fingerprint === dependencyFingerprint.value) {
|
||||
cached.lastUsedAt = nowMs();
|
||||
diag.cacheHits++;
|
||||
return cloneCached(cached.summary);
|
||||
return cached.summary;
|
||||
}
|
||||
diag.cacheMisses++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue