lhotari commented on issue #21442:
URL: https://github.com/apache/pulsar/issues/21442#issuecomment-1820668270

   
   > Of course, we can also optimize the implementation of 
`org.apache.pulsar.common.util.RateLimiter`. Perhaps an implementation based on 
Compare-And-Swap (CAS) would perform better than `synchronized`. All of these 
ideas need to be validated through experimentation.
   
   @Shawyeok I'm working on a non-blocking implementation that uses CAS. Please 
check https://github.com/lhotari/async-tokenbucket for the PoC and performance 
test. 
   
   In addition, I'll be fixing the issue in handling the way how autoread is 
toggled.
   


-- 
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-unsubscr...@pulsar.apache.org

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

Reply via email to