commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <>
Subject [jira] [Commented] (MATH-1389) Runtime Improvement for getSubMatrix in Array2DRowRealMatrix
Date Mon, 10 Oct 2016 15:58:20 GMT


Emmanuel Bourg commented on MATH-1389:

By "warmed up" I mean the JVM has compiled the method to native code and probably figured
out how to optimize it properly.

Out of curiosity, could you try running the JMH benchmark on your computer? Just copy
to {{src/test/main/java/org/apache/commons/math4}} and then run {{mvn clean test -Pbenchmark}}

> Runtime Improvement for getSubMatrix in Array2DRowRealMatrix
> ------------------------------------------------------------
>                 Key: MATH-1389
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Christoph Dibak
>            Priority: Trivial
>         Attachments: 0001-faster-getSubMatrix-for-Array2DRowRealMatrix.patch,,
> Using System.arraycopy() for creating sub-matrices in the getSubMatrix() method of Array2DRowRealMatrix
improves the runtime.  Tested for a matrix with dimension 50x50, the execution time was 16
times faster.

This message was sent by Atlassian JIRA

View raw message