Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c98d4f56
Commit
c98d4f56
authored
Dec 03, 2014
by
Sun He
Browse files
bitops.c/bitopCommand: skip short minlen for FAST PATH
parent
0ec7672a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bitops.c
View file @
c98d4f56
...
@@ -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
;
...
...
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