New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HashTable.initialSize isn't used at all #5804
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5804?orig=1 |
Christian Schlichtherle (christian_schlichtherle) said: |
@axel22 said: |
Christian Schlichtherle (christian_schlichtherle) said (edited on May 22, 2012 11:03:11 AM UTC): |
@axel22 said: |
Christian Schlichtherle (christian_schlichtherle) said: |
@axel22 said: |
Christian Schlichtherle (christian_schlichtherle) said: |
@adriaanm said (edited on Jan 23, 2013 12:06:52 AM UTC): |
@adriaanm said: |
@adriaanm said: |
@retronym said: |
initialSize in the HashTable trait isn't used at all. Instead, the initialSize function of the companion object is used. This makes it pointless to override this function and provide a reasonable initialSize for loading a known number of entries. This results in very bad performance when loading a hash table with many thousand entries because the array gets continuously resized until it finally fits the number of entries.
The text was updated successfully, but these errors were encountered: