You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2025/01/18 00:36:11 UTC

[PR] [improve][broker] Improve Consumer.equals performance [pulsar]

lhotari opened a new pull request, #23864:
URL: https://github.com/apache/pulsar/pull/23864

   ### Motivation
   
   - current problem is that unefficient IP address comparison will have to be performed on every match
   - equals method should check if the other object is the same instance as the first step
   Previously the equals method performance has been improved by @Shawyeok in PR #18662. That addressed the main performance issue and this current PR is a small adjustment to avoid unnecessary work when there's a matching instance.
   
   ### Modifications
   
   - add instance check as first step
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve][broker] Improve Consumer.equals performance [pulsar]

Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #23864:
URL: https://github.com/apache/pulsar/pull/23864


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org