On Fri, 14 Feb 2025 16:43:32 GMT, Ben Perez <bpe...@openjdk.org> wrote:

> It turns out that initializing a multidimensional array with `int[][] a = new 
> int[rows][cols]` is slower than allocating each column in a loop. Since we do 
> a lot of large multidimensional array allocations in ML-DSA, the optimized 
> initialization improves performance by roughly 10%.

This PR might be relevant: https://github.com/openjdk/jdk/pull/22829

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

PR Comment: https://git.openjdk.org/jdk/pull/23642#issuecomment-2675219511

Reply via email to