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

   ### Motivation
   
   Minor optimization. The implementation of `getPosition` involves creating a 
`PositionImpl` object. We don't need to create that object because we have 
access to the `ledgerId` and the `entryId`.
   
   
https://github.com/apache/pulsar/blob/76f41957d3b388d62067704ceb1b693dbd3e372d/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryImpl.java#L134-L137
   
   ### Modifications
   
   * Remove unnecessary `getPosition()` call.
   
   ### Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   
   ### Documentation
   
   - [x] `doc-not-needed` 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to