diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-27 16:06:41 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-27 19:27:10 +0100 |
commit | 3617102b51df4625cbe37f6a3f71caf64ddf7211 (patch) | |
tree | 126395f38546b865c0a8e4928dfce1ef68f072fe /src/dotty/tools/dotc/core/Contexts.scala | |
parent | c476171d838c55bbfe36856e73a470e826748acc (diff) | |
download | dotty-3617102b51df4625cbe37f6a3f71caf64ddf7211.tar.gz dotty-3617102b51df4625cbe37f6a3f71caf64ddf7211.tar.bz2 dotty-3617102b51df4625cbe37f6a3f71caf64ddf7211.zip |
Selective caching of SelectionProtos and ViewProtos
We cache SelectionProtos if their "compat" parameter is "NoViewsAllowed". We always cache ViewProtos.
That's important for implicit search, because this enables eligible refs to be better cached. To make this work, we add a case to WildApprox which massages SelectionProtos so they also get noViewsAllowed in the compat parameter.
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index d9116d2b6..99f396e8b 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -429,7 +429,7 @@ object Contexts { } /** A table for hash consing unique refined types */ - private[core] val uniqueRefinedTypes = new RefinedUniques + private[dotc] val uniqueRefinedTypes = new RefinedUniques /** A table for hash consing unique named types */ private[core] val uniqueNamedTypes = new NamedTypeUniques |