Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 543201787D for ; Fri, 21 Nov 2014 22:04:35 +0000 (UTC) Received: (qmail 16078 invoked by uid 500); 21 Nov 2014 22:04:35 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 15990 invoked by uid 500); 21 Nov 2014 22:04:35 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 15879 invoked by uid 99); 21 Nov 2014 22:04:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2014 22:04:35 +0000 Date: Fri, 21 Nov 2014 22:04:34 +0000 (UTC) From: "Otmar Ertl (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MATH-990) Improve performance of MathArrays.sortInPlace MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)