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


   ### Motivation & Modifications
   
   - refactor code in ManagedCursorImpl to get rid of 4 FastThreadLocal 
variables
     - it is hard to understand the code and it's not optimal
       since it will do object allocations for Long instances stored in the 
FastThreadLocal 
       variables.
     - there's less overhead in having a simple private class to hold the
       fields required for the state
     - ordinary local variables cannot be used since .forEach accepts a lambda
       and local variables cannot be mutated in a lambda


-- 
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