You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Wolfgang Hoschek <wh...@lbl.gov> on 2003/08/20 00:37:42 UTC

Enhance performance by generating jar file with -0 option

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.


Re: Enhance performance by generating jar file with -0 option

Posted by Ortwin Glück <or...@nose.ch>.
Wolfgang Hoschek wrote:
> Would you consider generating jar files with the -0 option to store 
> files in the jar file without using ZIP compression?

If you really need this you can always unpack and repack the file as 
desired.

Odi


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: Enhance performance by generating jar file with -0 option

Posted by Ortwin Glück <or...@nose.ch>.
Wolfgang Hoschek wrote:
> Would you consider generating jar files with the -0 option to store 
> files in the jar file without using ZIP compression?

If you really need this you can always unpack and repack the file as 
desired.

Odi


Re: Enhance performance by generating jar file with -0 option

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
And yes, maven has this option and its defaulted to "true", we should
add it to our build.properties so that jars are not compressed.

maven.jar.compress

-Mark

On Mon, 2004-03-22 at 12:06, Mark R. Diggory wrote:
> True, 
> 
> I think, if developers are actually producing Applets, they have a
> tendency to optimize them as much as possible, even un-jaring and
> re-wrapping all the classes they are dependent on and eliminating the
> classes they never use from the dependency jars. In the case of such
> re-wrapping efforts. In such light having the original jars
> compressed/uncompressed is unimportant to developers of applets.
> 
> That sounds very logical for application and server side tooling. Since
> we use Maven primarily to produce builds now in the Commons, I think we
> should look into if this can be configured in Maven so that all Commons
> Projects use the same strategy.
> 
> -Mark
> 
> 
> On Tue, 2003-08-19 at 18:37, 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 unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
-- 
Mark R. Diggory
Software Developer - VDC Project
Harvard MIT Data Center
http://www.hmdc.harvard.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: Enhance performance by generating jar file with -0 option

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
True, 

I think, if developers are actually producing Applets, they have a
tendency to optimize them as much as possible, even un-jaring and
re-wrapping all the classes they are dependent on and eliminating the
classes they never use from the dependency jars. In the case of such
re-wrapping efforts. In such light having the original jars
compressed/uncompressed is unimportant to developers of applets.

That sounds very logical for application and server side tooling. Since
we use Maven primarily to produce builds now in the Commons, I think we
should look into if this can be configured in Maven so that all Commons
Projects use the same strategy.

-Mark


On Tue, 2003-08-19 at 18:37, 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 unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
-- 
Mark R. Diggory
Software Developer - VDC Project
Harvard MIT Data Center
http://www.hmdc.harvard.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org