-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
refactor(runloop/balancer): clean the code of round robin algo #11315
Conversation
99936a8
to
6780856
Compare
@locao could you take a look? |
6780856
to
9f55f61
Compare
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.
74bcaa8
to
cdf2130
Compare
I will not oppose merging this change, but I am not a supporter of fixing what is not broken. I don't think the new code is more readable than before. Is there a performance-wise improvement? |
Sure, in this line (https://github.com/Kong/kong/pull/11315/files#diff-79ad4c6a67afdb7cfead0d69cfd9ce58d017d600b5a5456d5cc144923699e827R66) we append array faster. |
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.
This pr preserved the original functionality
@locao, Could you take a look and approve it? thanks. |
It feels like a |
It's ok to me. |
Summary
Did some style clean for the code of round-robin algo.
Checklist
Full changelog
Issue reference
Fix #[issue number]