Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 32627 invoked from network); 19 Jul 2008 09:01:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jul 2008 09:01:22 -0000 Received: (qmail 39137 invoked by uid 500); 19 Jul 2008 09:01:22 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 39114 invoked by uid 500); 19 Jul 2008 09:01:22 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 39105 invoked by uid 99); 19 Jul 2008 09:01:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2008 02:01:22 -0700 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; Sat, 19 Jul 2008 09:00:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 01EEE234C175 for ; Sat, 19 Jul 2008 02:00:32 -0700 (PDT) Message-ID: <477920650.1216458032006.JavaMail.jira@brutus> Date: Sat, 19 Jul 2008 02:00:32 -0700 (PDT) From: "Aleksey Shipilev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5920) [classlib][pack200][performance] ArrayList usage optimization In-Reply-To: <1168469268.1216457911685.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/HARMONY-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Shipilev updated HARMONY-5920: -------------------------------------- Attachment: pack200-arraylist-v3.patch pack200-arraylist-v3.patch Proposed patch, incorporates HARMONY-5919. Successfully passes JUnit tests. Gives +10% on unpacking scenario. > [classlib][pack200][performance] ArrayList usage optimization > ------------------------------------------------------------- > > Key: HARMONY-5920 > URL: https://issues.apache.org/jira/browse/HARMONY-5920 > Project: Harmony > Issue Type: Improvement > Environment: Latest pack200 > Reporter: Aleksey Shipilev > Attachments: pack200-arraylist-v3.patch > > > 1. Microbenchmark on Sun 1.6.0_05 shows that iterating ArrayList via iterators is 3x slower than iterating via get(). This issue eliminates iterator() in favor of get(). > 2. ArrayList-s are frequently instantiated with default capacity, even when the storage size is known. This issue sets the default capacities where applicable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.