Skip to content

Commit e5fd0f7

Browse files
committed
adapt kick-in threshold
1 parent 73000ed commit e5fd0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chmatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static SEXP chmatchMain(SEXP x, SEXP table, int nomatch, bool chin, bool chmatch
5656
}
5757
// else xlen>1; nprotect is const above since no more R allocations should occur after this point
5858
// When table >> x, hash x and scan table // ToDo tune the kick-in factor
59-
if (!chmatchdup && tablelen > 4 * xlen) {
59+
if (!chmatchdup && tablelen > 2 * xlen) {
6060
hashtab *marks = hash_create(xlen);
6161
int nuniq = 0;
6262
for (int i = 0; i < xlen; ++i) {

0 commit comments

Comments
 (0)