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

Claes Redestad redestad at openjdk.org
Wed Jun 26 10:32:14 UTC 2024


On Tue, 18 Jun 2024 10:00:46 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.
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixes

Friendly reminder that this improvement needs a Reviewer. While it'd be great if javac can make this redundant this is adding overhead in the meantime, and the temporary workaround doesn't obfuscate the code.

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

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


More information about the core-libs-dev mailing list