Commit c98d4f56 authored by Sun He's avatar Sun He
Browse files

bitops.c/bitopCommand: skip short minlen for FAST PATH

parent 0ec7672a
...@@ -360,7 +360,7 @@ void bitopCommand(redisClient *c) { ...@@ -360,7 +360,7 @@ void bitopCommand(redisClient *c) {
* can take a fast path that performs much better than the * can take a fast path that performs much better than the
* vanilla algorithm. */ * vanilla algorithm. */
j = 0; j = 0;
if (minlen && numkeys <= 16) { if (minlen >= sizeof(unsigned long)*4 && numkeys <= 16) {
unsigned long *lp[16]; unsigned long *lp[16];
unsigned long *lres = (unsigned long*) res; unsigned long *lres = (unsigned long*) res;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment