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.
2 parents 892f7bd + 015bbc1 commit b164b6dCopy full SHA for b164b6d
src/dotty/tools/dotc/core/Scopes.scala
@@ -28,9 +28,11 @@ object Scopes {
28
private final val FillFactor = 2.0/3.0
29
30
/** A hashtable is created once current size exceeds MinHash * FillFactor
31
- * The initial hash table has twice that size (i.e 24).
+ * The initial hash table has twice that size (i.e 16).
32
+ * This value must be a power of two, so that the index of an element can
33
+ * be computed as element.hashCode & (hashTable.length - 1)
34
*/
- private final val MinHash = 12
35
+ private final val MinHash = 8
36
37
/** The maximal permissible number of recursions when creating
38
* a hashtable
0 commit comments