You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "dweiss (via GitHub)" <gi...@apache.org> on 2023/07/27 13:06:32 UTC
[GitHub] [lucene] dweiss commented on a diff in pull request #12464: hunspell: make the hash table load factor customizable
dweiss commented on code in PR #12464:
URL: https://github.com/apache/lucene/pull/12464#discussion_r1276255030
##########
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Dictionary.java:
##########
@@ -1204,6 +1205,16 @@ char caseFold(char c) {
}
}
+ /**
+ * The factor determining the size of the internal hash table used for storing the entries. The
+ * table size is {@code entry_count * hashFactor}. The default factor is 1.0. If there are too
+ * many hash collisions, the factor can be increased, resulting in faster access, but more memory
+ * usage.
+ */
+ protected static double hashFactor() {
+ return 1.0;
Review Comment:
Sorry for the dumb question but how can this be increased without bytecode manipulation or source code changes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org