[jdom-interest] Enhance performance by generating jar file with -0 option

Jason Hunter jhunter at servlets.com
Mon Aug 25 17:15:27 PDT 2003


What are the numbers behind seeing a performance increase?  On a machine 
where the disk is slow but the CPU is fast I can imagine it would be 
better to read compressed content.  Also, in the days of fast CPUs how 
much performance does it take to uncompress the classes in a 150K file?

-jh-

Wolfgang Hoschek wrote:

> Would you consider generating jar files with the -0 option to store 
> files in the jar file without using ZIP compression?
> 
> Although this typically doubles the jar file size, it increases class 
> loading performance (except when used in applets which are presumably 
> not that important here). For example the JDK rt.jar is produced that way.
> 
> Compatibility: The -0 option was introduced in JDK 1.2
> 
> Also see http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/jar.html
> 
> Thanks.
> Wolfgang.
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com 
> 
> 




More information about the jdom-interest mailing list