You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have confirmed that this should be classified as an enhancement rather than a bug/feature.
Summary
I think there are unnecessary absolute value operation in class TopicPublishInfo. Because method sendQueue.incrementAndGet() must return a non-negative number.If possible, I hope I can modify it and make some contributions to open source
Motivation
Reduce unnecessary calculations and consumption
Describe the Solution You'd Like
change Math.abs(sendQueue.incrementAndGet() % messageQueueList.size()) to sendQueue.incrementAndGet() % messageQueueList.size()
Describe Alternatives You've Considered
change Math.abs(sendQueue.incrementAndGet() % messageQueueList.size()) to sendQueue.incrementAndGet() % messageQueueList.size()
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Before Creating the Enhancement Request
Summary
I think there are unnecessary absolute value operation in class TopicPublishInfo. Because method sendQueue.incrementAndGet() must return a non-negative number.If possible, I hope I can modify it and make some contributions to open source
Motivation
Reduce unnecessary calculations and consumption
Describe the Solution You'd Like
change Math.abs(sendQueue.incrementAndGet() % messageQueueList.size()) to sendQueue.incrementAndGet() % messageQueueList.size()
Describe Alternatives You've Considered
change Math.abs(sendQueue.incrementAndGet() % messageQueueList.size()) to sendQueue.incrementAndGet() % messageQueueList.size()
Additional Context
No response
The text was updated successfully, but these errors were encountered: