Re: RFR: 8347606: Optimize Java implementation of ML-DSA [v3]

2025-05-13 Thread Weijun Wang
On Tue, 13 May 2025 16:49:36 GMT, Ben Perez 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

Re: RFR: 8347606: Optimize Java implementation of ML-DSA [v3]

2025-05-13 Thread Ben Perez
> 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%. Ben