Return-Path: Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: (qmail 72940 invoked from network); 20 Aug 2009 13:47:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Aug 2009 13:47:18 -0000 Received: (qmail 91503 invoked by uid 500); 20 Aug 2009 13:47:37 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 91431 invoked by uid 500); 20 Aug 2009 13:47:36 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 91350 invoked by uid 99); 20 Aug 2009 13:47:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 13:47:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 13:47:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E175B234C1F1 for ; Thu, 20 Aug 2009 06:47:14 -0700 (PDT) Message-ID: <766546684.1250776034922.JavaMail.jira@brutus> Date: Thu, 20 Aug 2009 06:47:14 -0700 (PDT) From: "Steve Loughran (JIRA)" To: hdfs-dev@hadoop.apache.org Subject: [jira] Created: (HDFS-554) BlockInfo.ensureCapacity may get a speedup from System.arraycopy() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org BlockInfo.ensureCapacity may get a speedup from System.arraycopy() ------------------------------------------------------------------ Key: HDFS-554 URL: https://issues.apache.org/jira/browse/HDFS-554 Project: Hadoop HDFS Issue Type: Improvement Components: name-node Affects Versions: 0.21.0 Reporter: Steve Loughran Priority: Minor BlockInfo.ensureCapacity() uses a for() loop to copy the old array data into the expanded array. {{System.arraycopy()}} is generally much faster for this, as it can do a bulk memory copy. There is also the typesafe Java6 {{Arrays.copyOf()}} to consider, though here it offers no tangible benefit. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.