Skip to content

Commit

Permalink
Merge pull request #6967 from retronym/topic/scope-constants
Browse files Browse the repository at this point in the history
Avoid needless storage/lookup for constants in Scope
  • Loading branch information
SethTisue committed Jul 26, 2018
2 parents 160233b + e2480d8 commit d846792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reflect/scala/reflect/internal/Scopes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ trait Scopes extends api.Scopes { self: SymbolTable =>
/** size and mask of hash tables
* todo: make hashtables grow?
*/
private val HASHSIZE = 0x80
private val HASHMASK = 0x7f
private final val HASHSIZE = 0x80
private final val HASHMASK = 0x7f

/** the threshold number of entries from which a hashtable is constructed.
*/
private val MIN_HASH = 8
private final val MIN_HASH = 8

/** Returns a new scope with the same content as this one. */
def cloneScope: Scope = newScopeWith(this.toList: _*)
Expand Down

0 comments on commit d846792

Please sign in to comment.