With the new JDK 1.5 Tiger beta, there are lots of thoughts flowing from developers on the new features. One of these is the javax.pack package which provides methods to read files from a JAR file and to transform them to Pack200 format. It also provides methods to expand Pack200 format back to a JAR file equivalent to the original JAR.
Eugene Kuleshov wrote some code to experiment and SEE what kind of compression he could get. The numbers look great. He took the rt.jar and compressed it to 12% (with a pack and zip).
Read Eugene Kuleshov in Crunching jars up to less then 10% of the original size.
-
javax.pack: Crunching jars up to less then 10% of their size (8 messages)
- Posted by: Dion Almaer
- Posted on: February 06 2004 11:20 EST
Threaded Messages (8)
- I think you mean *to* 12% by Bob Lee on February 06 2004 17:21 EST
- RE: I think you mean *to* 12% by Dion Almaer on February 06 2004 17:31 EST
- There were 2 examples given.... by Don Stadler on February 10 2004 06:20 EST
- javax.pack: Crunching jars up to less then 10% of their size by Vladimir Goncharov on February 06 2004 18:40 EST
- Great step forward for client-side java by numero pi on February 07 2004 16:57 EST
- Programmers need good grammar too.... by Chris May on February 08 2004 13:07 EST
-
I think you mean *to* 12%[ Go to top ]
- Posted by: Bob Lee
- Posted on: February 06 2004 17:21 EST
- in response to Dion Almaer
That's really amazing. -
RE: I think you mean *to* 12%[ Go to top ]
- Posted by: Dion Almaer
- Posted on: February 06 2004 17:31 EST
- in response to Bob Lee
You are right. I think part of my brain didn't think it was possible so it used the wrong words :)
Dion -
There were 2 examples given....[ Go to top ]
- Posted by: Don Stadler
- Posted on: February 10 2004 06:20 EST
- in response to Bob Lee
The jar file packed down to 12%, and 'some UML tool' packed down into 8.5%. These results were a combination of using Pack200 and zip. I'm sure the results will vary with the individual file.
Pretty impressive in any case. -
javax.pack: Crunching jars up to less then 10% of their size[ Go to top ]
- Posted by: Vladimir Goncharov
- Posted on: February 06 2004 18:40 EST
- in response to Dion Almaer
So why the new JDK1.5 doesn't use Pack as default instead of jar format, and why it took so long to come out with something better the jar format? Would be interesting to compare the new Pack format with the old CAB one. -
Actually[ Go to top ]
- Posted by: Keith Lea
- Posted on: February 06 2004 18:45 EST
- in response to Vladimir Goncharov
Actually, the pack format has been around for a while - you might have noticed how the JRE download has been under 10MB for a while, even though rt.jar alone is around 30MB. -
Actually[ Go to top ]
- Posted by: Nipsu
- Posted on: February 07 2004 05:02 EST
- in response to Keith Lea
Actually, the pack format has been around for a while - you might have noticed how the JRE download has been under 10MB for a while, even though rt.jar alone is around 30MB.
You don't need pack for that. 1.4.2_02 with included server vm is 44,1MB and compresses to 17MB with regular winzip. -
Great step forward for client-side java[ Go to top ]
- Posted by: numero pi
- Posted on: February 07 2004 16:57 EST
- in response to Dion Almaer
IMHO, this is massively good news for client side java applications. If the 1.5 JRE installer uses the pack format (which I'm sure they will do, as this may have been the sole reason for including it) the download could get down to 4-6 MB, a great improvement for desktop java applications. As long as the time required for decompression is reasonable, the time for compression, which I've read is a bit high, becomes irrelevant and we have an easy to download and distribute JRE. Well done! -
Programmers need good grammar too....[ Go to top ]
- Posted by: Chris May
- Posted on: February 08 2004 13:07 EST
- in response to Dion Almaer
less *than* 10% of their size :)