summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-25 03:56:13 +0000
committerPaul Phillips <paulp@improving.org>2009-10-25 03:56:13 +0000
commit2cef1c58a54c996243fb85630cce841073c18650 (patch)
treeb3c5859df83a1c2a0f61c0af27e8d29d242e2890 /src/compiler/scala/tools/nsc/ast/TreeInfo.scala
parent460a434698ec97cd3dfb74a18d45ab08ea95debc (diff)
downloadscala-2cef1c58a54c996243fb85630cce841073c18650.tar.gz
scala-2cef1c58a54c996243fb85630cce841073c18650.tar.bz2
scala-2cef1c58a54c996243fb85630cce841073c18650.zip
Fix and test case for #2512, plus lots of time ...
Fix and test case for #2512, plus lots of time expended tuning HashSet starting sizes and growth rate, with almost nothing to show for it (but I did determine that "shadowed" is constructed identically something like 10,000 times, so there is probably a cache to be had there.)
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeInfo.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeInfo.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
index 6a8f653ac4..e7b9ec9187 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
@@ -189,7 +189,7 @@ abstract class TreeInfo {
def isLeftAssoc(operator: Name): Boolean =
operator.length > 0 && operator(operator.length - 1) != ':'
- private val reserved = new HashSet[Name]
+ private val reserved = new HashSet[Name]("reserved", 64)
reserved addEntry nme.false_
reserved addEntry nme.true_
reserved addEntry nme.null_