Compressing SimpleLibrary with GZIP
Alan Bateman
Alan.Bateman at oracle.com
Tue Mar 13 13:07:38 PDT 2012
On 13/03/2012 17:26, Aleksey Shipilev wrote:
> Hi guys,
>
> I'm keeping an eye on footprint of Jigsaw library. I understand the code
> we have not by any means complete, and one should anticipate changes to
> binary format
> for modules.
>
> However, can we compress it with GZIP at this point? That will require
> just a few one-liner changes [1], but the benefit is obvious:
>
> a. jre-module-image size is down from 161Mb to 158Mb
> b. dummy multi-module projects (which have plenty of metadata) are
> consuming 5-6 times less space
>
> -Aleksey.
>
The jmod create command has the -z (or --enable-compression) option to
enable compression on the module contents. At this point it's for the
module classes only. It's also possible to strip the debug attributes
from classes during install via the -G (or --strip-debug option). So it
is possible to reduce the disk usage now if it's a problem. Clearly if
we were to continue with the existing configuration file then
compression should be considered too but that all should change soon.
The loading of the config file is a problem for startup performance too.
-Alan
More information about the jigsaw-dev
mailing list