We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2249961 commit 4d044c6Copy full SHA for 4d044c6
compiler/src/dotty/tools/dotc/core/tasty/TreeBuffer.scala
@@ -21,7 +21,7 @@ class TreeBuffer extends TastyBuffer(50000) {
21
private var numOffsets = 0
22
23
/** A map from trees to the address at which a tree is pickled. */
24
- private val treeAddrs = util.IntMap[Tree]()
+ private val treeAddrs = util.IntMap[Tree](initialCapacity = 8192)
25
26
def registerTreeAddr(tree: Tree): Addr =
27
val idx = treeAddrs(tree)
0 commit comments