mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
bitops.c/bitopCommand: skip short minlen for FAST PATH
This commit is contained in:
parent
0ec7672a5d
commit
c98d4f5675
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user