RFR: 8343559: Optimize Class.getMethod(String, Class<?>...) for methods with no-arg [v3]

jengebr duke at openjdk.org
Thu Nov 7 13:48:02 UTC 2024


On Wed, 6 Nov 2024 17:35:36 GMT, Chen Liang <liach at openjdk.org> wrote:

>> I don't like the style of a custom loop rather than `Arrays.equals()` but there is a perf benefit to it.  Curious what you think?
>
> Sure, moving param count ahead is fine.  Note that `Arrays.equals` is subject to profile pollution at runtime, so the benchmark results might not be applicable in practice.

@liach changes complete.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21929#discussion_r1832705057


More information about the core-libs-dev mailing list