diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-18 17:17:39 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-11-18 17:18:14 +0100 |
commit | 3d58ebc52f9cffe97470f30f588d0182c372b227 (patch) | |
tree | e26b27bc1d520962cc3772e75ef514143542d752 /src/dotty/tools/dotc/CompilationUnit.scala | |
parent | 601a286b1c1eb7f0bbea64609a7d07ed40f02118 (diff) | |
download | dotty-3d58ebc52f9cffe97470f30f588d0182c372b227.tar.gz dotty-3d58ebc52f9cffe97470f30f588d0182c372b227.tar.bz2 dotty-3d58ebc52f9cffe97470f30f588d0182c372b227.zip |
Don't keep full picklers around until backend.
The memory footprint captured by pickler seems to be about
1/3rd of total footprint. So we gain a lot by not making this
die sooner rather than later.
Diffstat (limited to 'src/dotty/tools/dotc/CompilationUnit.scala')
-rw-r--r-- | src/dotty/tools/dotc/CompilationUnit.scala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dotty/tools/dotc/CompilationUnit.scala b/src/dotty/tools/dotc/CompilationUnit.scala index 16a59250b..491c2bd9b 100644 --- a/src/dotty/tools/dotc/CompilationUnit.scala +++ b/src/dotty/tools/dotc/CompilationUnit.scala @@ -17,12 +17,8 @@ class CompilationUnit(val source: SourceFile) { def isJava = source.file.name.endsWith(".java") - /** - * Picklers used to create TASTY sections, indexed by toplevel class to which they belong. - * Sections: Header, ASTs and Positions are populated by `pickler` phase. - * Subsequent phases can add new sections. - */ - var picklers: Map[ClassSymbol, TastyPickler] = Map() + /** Pickled TASTY binaries, indexed by class. */ + var pickled: Map[ClassSymbol, Array[Byte]] = Map() var unpicklers: Map[ClassSymbol, TastyUnpickler] = Map() } |