-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance fixes #307
Performance fixes #307
Conversation
Tests failure are the same as on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
A few questions.
@@ -8,7 +8,7 @@ | |||
#include "command.h" | |||
#include "dep/triemap/triemap.h" | |||
|
|||
#define MR_CONN_POOL_SIZE 4 | |||
#define MR_CONN_POOL_SIZE 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this related?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a single connection we spare Redis from switching the connections it reads from and we maximize throughput.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a small comment there on the performance impact?
RSValue *v = RS_NullVal(); | ||
if (i + 1 < MRReply_Length(rep)) { | ||
MRReply *val = MRReply_ArrayElement(rep, i + 1); | ||
v = MRReply_ToValue(val); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the path for the bug exposed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, position i+1 might not exist in case of error.
No description provided.