Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0E977200B9C for ; Mon, 10 Oct 2016 19:53:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0D479160AE1; Mon, 10 Oct 2016 17:53:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 735B5160AD1 for ; Mon, 10 Oct 2016 19:53:21 +0200 (CEST) Received: (qmail 91599 invoked by uid 500); 10 Oct 2016 17:53:20 -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 91584 invoked by uid 99); 10 Oct 2016 17:53:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2016 17:53:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6DC002C0B04 for ; Mon, 10 Oct 2016 17:53:20 +0000 (UTC) Date: Mon, 10 Oct 2016 17:53:20 +0000 (UTC) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1389) Runtime Improvement for getSubMatrix in Array2DRowRealMatrix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Oct 2016 17:53:22 -0000 [ https://issues.apache.org/jira/browse/MATH-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562975#comment-15562975 ] Emmanuel Bourg commented on MATH-1389: -------------------------------------- I think it's worth applying too, optimizing the cold scenario is interesting and it seems slightly better even when the JIT kicked in. > Runtime Improvement for getSubMatrix in Array2DRowRealMatrix > ------------------------------------------------------------ > > Key: MATH-1389 > URL: https://issues.apache.org/jira/browse/MATH-1389 > Project: Commons Math > Issue Type: Improvement > Reporter: Christoph Dibak > Priority: Trivial > Attachments: 0001-faster-getSubMatrix-for-Array2DRowRealMatrix.patch, MatrixBenchmark.java, RuntimeTestGetSubMatrix.java > > > 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 (v6.3.4#6332)