apache/dubbo
GitHub で見る[Discussion] RandomLoadBalance optimize the same weight judgement
Open
#13,948 opened on 2024年3月19日
component/sdkhelp wantedtype/discussiontype/enhancement
Repository metrics
- Stars
- (41,524 stars)
- PR merge metrics
- (平均マージ 7d 14h) (30d で 20 merged PRs)
説明
Pre-check
- I am sure that all the content I provide is in English.
Search before asking
- I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo java 3.2, Open-JDK 1.8, Windows
Steps to reproduce this issue
we judge if the weight is same after accumulation. It will cause us to do an additional addition operation. We can move the logic to determine if the weights are the same before accumulation. So we can reduce addition operation.
What you expected to happen
We don't need to do an additional operation. It reduces performance
Anything else
No response
Are you willing to submit a pull request to fix on your own?
- Yes I am willing to submit a pull request on my own!
Code of Conduct
- I agree to follow this project's Code of Conduct