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 17:21:12 UTC

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

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


   > 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.
   
   If the lambda is not capturing any reference, like `TopicPolicies::new` it will not need an allocation.


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