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
Add optimization to reduce extra iterations of the safe init checker. (#17057)
If the cache is never accessed on a certain iteration of safe
initializing checking for a class, then another iteration is not needed.
Implementing this optimization and compiling Dotty, we observe the
following improvements:
From 4158 total iterations to 4004.
From 460 extra iterations to 306.
Running the initialization tests in `tests/init` we have the following
improvements:
From 790 total iterations to 708.
From 139 extra iterations to 57.
0 commit comments