You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Regis Xu (JIRA)" <ji...@apache.org> on 2007/10/17 03:58:50 UTC
[jira] Commented: (HARMONY-4950) [classlib][performance] read
property file from jar file is very slow at first time
[ https://issues.apache.org/jira/browse/HARMONY-4950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535393 ]
Regis Xu commented on HARMONY-4950:
-----------------------------------
i run the test on Ubuntu 7.04
> [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.