Integrated: 8347606: Optimize Java implementation of ML-DSA
Ben Perez
bperez at openjdk.org
Tue May 13 22:35:00 UTC 2025
On Fri, 14 Feb 2025 16:43:32 GMT, Ben Perez <bperez at 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 pull request has now been integrated.
Changeset: 10dcdf1b
Author: Ben Perez <bperez at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/10dcdf1b4738efc6b4deaf96f4d123aff4dab832
Stats: 54 lines in 1 file changed: 23 ins; 1 del; 30 mod
8347606: Optimize Java implementation of ML-DSA
Reviewed-by: weijun
-------------
PR: https://git.openjdk.org/jdk/pull/23642
More information about the security-dev
mailing list