Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 71747 invoked from network); 7 Nov 2008 18:13:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2008 18:13:08 -0000 Received: (qmail 9315 invoked by uid 500); 7 Nov 2008 18:13:13 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 9145 invoked by uid 500); 7 Nov 2008 18:13:13 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 9134 invoked by uid 99); 7 Nov 2008 18:13:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2008 10:13:13 -0800 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; Fri, 07 Nov 2008 18:12:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 95E27234C284 for ; Fri, 7 Nov 2008 10:12:45 -0800 (PST) Message-ID: <860078015.1226081565612.JavaMail.jira@brutus> Date: Fri, 7 Nov 2008 10:12:45 -0800 (PST) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-4583) Code optimization/cleanup in HDFS In-Reply-To: <1422873620.1225759184366.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-4583: ------------------------------------------- Status: Patch Available (was: Open) > Code optimization/cleanup in HDFS > --------------------------------- > > Key: HADOOP-4583 > URL: https://issues.apache.org/jira/browse/HADOOP-4583 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Affects Versions: 0.20.0 > Reporter: Suresh Srinivas > Assignee: Suresh Srinivas > Fix For: 0.20.0 > > Attachments: 4583.patch, 4583.patch > > > Some of the changes needed: > - FSNameSystem.allocateBlock creates a lot of object unnecessarily to find a blockID that is unused. It should reuse the Block object created by changing the blockID and reusing the GenerationStamp. > - InodeFile.addBlock should use System.arrayCopy instead of copying 1 at a time. > - Some of the for loops in FSEditLog.java can be optimized. Instead of getting the edit stream length in termination condition, a local variable should be used to do the same. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.