RFR: 8356993: ArrayDeque should use Arrays.fill() instead of for() loops

Archie Cobbs acobbs at openjdk.org
Thu May 15 14:14:59 UTC 2025


On Thu, 15 May 2025 06:07:06 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Are you planning to add some JMH benchmarks to go with this?

I wasn't planning to, but I'm inferring from your question that you'd prefer to see one.

Which also makes me curious. I'd be shocked if this were slower, but even if not, I wonder how much faster it would be.

I will work on creating one.

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

PR Comment: https://git.openjdk.org/jdk/pull/25237#issuecomment-2883965303


More information about the core-libs-dev mailing list