You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
using an array instead of a hashmap for storing node colors,
and maybe, by re-using the current_deps vector among recursive invocations or using a SmallVec (although such optimizations can easily backfire, so proper profiling is needed here).
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_depsvector among recursive invocations or using aSmallVec(although such optimizations can easily backfire, so proper profiling is needed here).