Memoize read-only source graph stats

This commit is contained in:
udo
2026-07-17 22:00:37 +00:00
parent 7e0b8337ab
commit 9beec0dd03
3 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -2210,7 +2210,7 @@ private:
now - cached_freshness->second.checked_at).count() >= 1000;
if(check_freshness)
{
stale = compiler_unit_needs_recompile(context, resolved, 0);
stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request);
worker.component_freshness[resolved] = { now, stale };
}
else