Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59336 invoked from network); 17 Oct 2007 03:18:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 03:18:11 -0000 Received: (qmail 97193 invoked by uid 500); 17 Oct 2007 03:17:59 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97169 invoked by uid 500); 17 Oct 2007 03:17:59 -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 97160 invoked by uid 99); 17 Oct 2007 03:17:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 20:17:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 03:18:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A7C0871403F for ; Tue, 16 Oct 2007 20:17:50 -0700 (PDT) Message-ID: <4774998.1192591070654.JavaMail.jira@brutus> Date: Tue, 16 Oct 2007 20:17:50 -0700 (PDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4950) [classlib][performance] read property file from jar file is very slow at first time In-Reply-To: <6090564.1192527830561.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-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu closed HARMONY-4950. ----------------------------- Resolution: Cannot Reproduce > [classlib][performance] read property file from jar file is very slow at first time > ------------------------------------------------------------------------------------ > > Key: HARMONY-4950 > URL: https://issues.apache.org/jira/browse/HARMONY-4950 > Project: Harmony > Issue Type: Improvement > Reporter: Regis Xu > > below is test case: > =============start============= > Properties pro = new Properties(); > URL url = new > URL("jar:file:/home/bahamut/harmony/trunk/deploy/jdk/jre/lib/boot/jndi.jar!/jndi.properties"); > InputStream in = url.openStream(); > long start = System.currentTimeMillis(); > pro.load(in); > long end = System.currentTimeMillis(); > System.out.println("time: " + (end - start)); > in.close(); > pro = new Properties(); > url = new > URL("jar:file:/home/bahamut/harmony/trunk/deploy/jdk/jre/lib/boot/jndi.jar!/jndi.properties"); > in = url.openStream(); > start = System.currentTimeMillis(); > pro.load(in); > end = System.currentTimeMillis(); > System.out.println("time: " + (end - start)); > in.close(); > =================end=============== > output of ri: > time: 1 > time: 0 > output of harmony: > time: 231 > time: 1 > clearly, there is huge space to improve, maybe it's problem from archive or io module. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.