On Thu, 30 May 2024 13:04:46 GMT, Chen Liang <li...@openjdk.org> wrote:

> Should we extract them to private static utility methods for potential 
> laziness support in the future?

Ideally we shouldn't have to do any of this. I thought such method references 
were already de-duplicated in javac - at least within the same compilation 
units - but I saw this in a startup profile and was surprised myself that the 
demonstrated manual de-duplication has an observable effect.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19477#issuecomment-2139576911

Reply via email to