Memoize read-only source graph stats
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user