Reduce allocations in TypingTransformer based phases #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes scala/scala-dev#519
0.977693534x allocation reduction for compiling
catsJVM
TODO:
LightTypingTransformer
an abstract class rather than a trait to speed up the type test.superaccessors
(that stores local typers). Or maybe look at refactoringsuperaccessors
to be less weird.patmat
's current reliance on implicit search working in typechecking forArray
patterns. To witness this, modify typer to disable implicit search after the typer global phase. After this change,LightTypingTransformer
basedlocalTyper
-s would no longer pick up in scope implicits contributed by enclosing members. It already ignores in-scope implicits that were made available via imports, as theImport
nodes are dropped inrefchecks
.