RFR: 8333265: De-duplicate method references in java.util.stream.FindOps
Claes Redestad
redestad at openjdk.org
Thu May 30 13:40:01 UTC 2024
On Thu, 30 May 2024 13:04:46 GMT, Chen Liang <liach at 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
More information about the core-libs-dev
mailing list