You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/08/03 11:32:00 UTC

[GitHub] [pulsar] eolivelli commented on pull request #11542: Replace orElse with orElseGet to avoid calling too many times.

eolivelli commented on pull request #11542:
URL: https://github.com/apache/pulsar/pull/11542#issuecomment-891771325


   The patch looks good.
   
   I am not sure we achieve some visible improvement because in anyway you are allocating an instance of the lambda expression. Probably the overhead of instantiating such instance will be lower.
   
   I am +1 


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