aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/pickling/TreeBuffer.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-30 15:07:52 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-30 15:07:52 +0200
commit10d05f34a8c3f006c6a0aabed04c47cb7566cc46 (patch)
tree369d714ee484e38c5a6709dfcfe3d3ee5bed6ca7 /src/dotty/tools/dotc/core/pickling/TreeBuffer.scala
parentc4b61af8b20dd9f763ffa34e27625e3ffd966f5c (diff)
downloaddotty-10d05f34a8c3f006c6a0aabed04c47cb7566cc46.tar.gz
dotty-10d05f34a8c3f006c6a0aabed04c47cb7566cc46.tar.bz2
dotty-10d05f34a8c3f006c6a0aabed04c47cb7566cc46.zip
Decrease default sizes of buffers.
Values are the ones that I got as maximum values for compiling dotty itself.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/TreeBuffer.scala')
-rw-r--r--src/dotty/tools/dotc/core/pickling/TreeBuffer.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/TreeBuffer.scala b/src/dotty/tools/dotc/core/pickling/TreeBuffer.scala
index c224fc30b..393ffd278 100644
--- a/src/dotty/tools/dotc/core/pickling/TreeBuffer.scala
+++ b/src/dotty/tools/dotc/core/pickling/TreeBuffer.scala
@@ -8,10 +8,9 @@ import TastyBuffer.{Addr, AddrWidth}
import config.Printers.pickling
import ast.tpd.Tree
-class TreeBuffer extends TastyBuffer(1000000) {
+class TreeBuffer extends TastyBuffer(50000) {
private final val ItemsOverOffsets = 2
-
private val initialOffsetSize = bytes.length / (AddrWidth * ItemsOverOffsets)
private var offsets = new Array[Int](initialOffsetSize)
private var isRelative = new Array[Boolean](initialOffsetSize)