-
Notifications
You must be signed in to change notification settings - Fork 909
GODRIVER-2628 optimize allocations in selectServerFromDescription #1111
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
GODRIVER-2628 optimize allocations in selectServerFromDescription #1111
Conversation
BTW in all the cases it seems beneficial to use bool slice for filtering like
In this case benchmark results are:
Should I use this approach in all three places? |
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.
Thank you for this PR @isopov !
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.
LGTM
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.
LGTM assuming tests pass! This seems like a very reasonable addition given the previous changes in GODRIVER-2526. Thanks for your contribution, @isopov .
GODRIVER-2628
Summary
Optimize allocations in selectServerFromDescription
Background & Motivation
Same way as in #1108 and #1107 I want to reduce allocations in selectServerFromDescription func which flat allocations in my case are > 100GB and which possess the very first place by flat allocations in my long running job.
Benchmark attached without changes to the code:
And with changes: