From c98d4f56756f5fba18a9035aab34a853b4fae574 Mon Sep 17 00:00:00 2001 From: Sun He Date: Wed, 3 Dec 2014 10:07:58 +0800 Subject: [PATCH] bitops.c/bitopCommand: skip short minlen for FAST PATH --- src/bitops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitops.c b/src/bitops.c index 15ce787cf..4c8662244 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -360,7 +360,7 @@ void bitopCommand(redisClient *c) { * can take a fast path that performs much better than the * vanilla algorithm. */ j = 0; - if (minlen && numkeys <= 16) { + if (minlen >= sizeof(unsigned long)*4 && numkeys <= 16) { unsigned long *lp[16]; unsigned long *lres = (unsigned long*) res; -- GitLab