Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
aa130cae
Commit
aa130cae
authored
Dec 03, 2014
by
Sun He
Committed by
antirez
Dec 09, 2014
Browse files
bitops.c/bitopCommand: skip short minlen for FAST PATH
parent
5fc55a1a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bitops.c
View file @
aa130cae
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment