RFR: 8333265: De-duplicate method references in java.util.stream.FindOps

Chen Liang liach at openjdk.org
Thu May 30 13:07:01 UTC 2024


On Thu, 30 May 2024 12:50:36 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> Extracting duplicate method references to static field reduce proxy class spinning and loading. In this case 2 less classes loaded when using `findAny()` on each type of stream.

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

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

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


More information about the core-libs-dev mailing list