diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 15:07:52 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 15:07:52 +0200 |
commit | 10d05f34a8c3f006c6a0aabed04c47cb7566cc46 (patch) | |
tree | 369d714ee484e38c5a6709dfcfe3d3ee5bed6ca7 /src/dotty/tools/dotc/core/pickling/TreeBuffer.scala | |
parent | c4b61af8b20dd9f763ffa34e27625e3ffd966f5c (diff) | |
download | dotty-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.scala | 3 |
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) |