From 3d58ebc52f9cffe97470f30f588d0182c372b227 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 18 Nov 2016 17:17:39 +0100 Subject: 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. --- src/dotty/tools/backend/jvm/GenBCode.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dotty/tools/backend/jvm/GenBCode.scala') diff --git a/src/dotty/tools/backend/jvm/GenBCode.scala b/src/dotty/tools/backend/jvm/GenBCode.scala index 902f73ae2..65dcb6c79 100644 --- a/src/dotty/tools/backend/jvm/GenBCode.scala +++ b/src/dotty/tools/backend/jvm/GenBCode.scala @@ -203,8 +203,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter val plainC = pcb.cnode if (claszSymbol.isClass) // @DarkDimius is this test needed here? - for (pickler <- ctx.compilationUnit.picklers.get(claszSymbol.asClass)) { - val binary = pickler.assembleParts() + for (binary <- ctx.compilationUnit.pickled.get(claszSymbol.asClass)) { val dataAttr = new CustomAttr(nme.TASTYATTR.toString, binary) (if (mirrorC ne null) mirrorC else plainC).visitAttribute(dataAttr) } -- cgit v1.2.3