-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqd: add pool to minimize buffer allocation on message send #1292
Conversation
Maybe the function names should be more specific, like Do you have a benchmark that shows a significant improvement in performance from this change? |
Thank you for your advice. I see the buffer in the paclage |
It looks like it is already extracted, and you can just use it, in one more place. |
i use the `bench.sh' make this bench test: before:
after:
|
Looks good to me, thanks. The commit title could be a bit better, I suggest something like
|
LGTM other than that small question |
@ploxiln the latest benchmark:
|
thanks! |
No description provided.