You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Otmar Ertl (JIRA)" <ji...@apache.org> on 2014/11/21 23:04:34 UTC

[jira] [Updated] (MATH-990) Improve performance of MathArrays.sortInPlace

     [ https://issues.apache.org/jira/browse/MATH-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otmar Ertl updated MATH-990:
----------------------------
    Attachment: patch

The performance can be further improved while still using Collections.sort by avoiding the generic Pair class (see attached patch). A reduction of costs by a factor of 0.8 was observed in case of 2 parallel arrays.

> Improve performance of MathArrays.sortInPlace
> ---------------------------------------------
>
>                 Key: MATH-990
>                 URL: https://issues.apache.org/jira/browse/MATH-990
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>              Labels: benchmark
>             Fix For: 4.0
>
>         Attachments: patch
>
>
> Performance suffers from lots of copying.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)