harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-4950) [classlib][performance] read property file from jar file is very slow at first time
Date Wed, 17 Oct 2007 03:17:50 GMT

     [ 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.


Mime
View raw message