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

Chen Liang liach at openjdk.org
Wed Jul 24 14:27:34 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

test/micro/org/openjdk/bench/java/util/stream/ops/ref/FindAny.java line 63:

> 61:     }
> 62: 
> 63:     public static void main(String... args) {

Is this driver necessary?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19477#discussion_r1689920309


More information about the core-libs-dev mailing list