-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove cruft from TyperPhase #13771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove cruft from TyperPhase #13771
Conversation
More unused.
@@ -89,11 +73,9 @@ class TyperPhase(addRootImports: Boolean = true) extends Phase { | |||
else | |||
newCtx | |||
|
|||
remaining = unitContexts | |||
while remaining.nonEmpty do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this while loop was probably added for a performance critical reason, I suggest remaining
could be made a local variable (maybe premature optimisation?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m pretty sure it was there to enable stillToBeEntered
, which is no longer used (AFAICT).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Friendly ping @bishabosha? Is there anything I need to change here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im running the benchmarks, I'm sure that it probably makes no difference if it is foreach or a loop
test performance please |
performance test scheduled: 1 job(s) in queue, 0 running. |
Performance test finished successfully: Visit https://dotty-bench.epfl.ch/13771/ to see the changes. Benchmarks is based on merging with master (968dd1b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the makeAnnotated
function was written in 2016, seems it is not used for a while
Thanks! |
During development of #13762, I noticed there was some defunct code in the TyperPhase. This PR (the first commit of the previous PR) cleans up that cruft.