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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
