incr.comp.: Optimize DepGraph::try_mark_green() #47293
Labels
A-incr-comp
Area: Incremental compilation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-compiletime
Issue: Problems and improvements with respect to compile times.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
DepGraph::try_mark_green()
is a rather hot function, especially in compilation sessions that see a lot of re-use. It can probably be made faster by:current_deps
vector among recursive invocations or using aSmallVec
(although such optimizations can easily backfire, so proper profiling is needed here).The text was updated successfully, but these errors were encountered: