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.
1 parent 73000ed commit e5fd0f7Copy full SHA for e5fd0f7
src/chmatch.c
@@ -56,7 +56,7 @@ static SEXP chmatchMain(SEXP x, SEXP table, int nomatch, bool chin, bool chmatch
56
}
57
// else xlen>1; nprotect is const above since no more R allocations should occur after this point
58
// When table >> x, hash x and scan table // ToDo tune the kick-in factor
59
- if (!chmatchdup && tablelen > 4 * xlen) {
+ if (!chmatchdup && tablelen > 2 * xlen) {
60
hashtab *marks = hash_create(xlen);
61
int nuniq = 0;
62
for (int i = 0; i < xlen; ++i) {
0 commit comments