Compressing class files in the module library

Alan Bateman Alan.Bateman at oracle.com
Wed Nov 9 10:21:07 PST 2011


I have an initial patch [1] to compress the classes of modules in the 
module library. It essentially adds an option to "jmod create" so that 
the classes of any modules installed into the library get compressed. 
The patch also adds a build option to enable compression in the system 
libraries of the images that the build generates.

Before finishing this I'd like to get some input on a few points. The 
first is whether it's reasonable to enable compression when creating the 
module library? The alternative is install time so that it's on a per 
module basis. The former is less flexible but as the module library 
format evolves it may not be feasible to have a mix of compressed and 
uncompressed modules.

The other question is suggestions for the option name. For now it's -9 
or --enable-compression (-9 influenced by the zip -9 option for  
compress better). I'm looking for better suggestions.

Thanks,

-Alan.

[1] http://cr.openjdk.java.net/~alanb/ModuleLibraryCompression/webrev/



More information about the jigsaw-dev mailing list