United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6641969 Optimize bundles.xml
JDK-6641969 : Optimize bundles.xml

Details
Type:
Enhancement
Submit Date:
2007-12-14
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-01-25
Component:
deploy
OS:
windows
Sub-Component:
deployment_toolkit
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b10)

Related Reports
Backport:

Sub Tasks

Description
Currently for many workloads downloaded java kernel bundles are almost not used (i.e. only small fraction of bundle content is actually needed to execute application).

Downloading more than needed clearly has negative impact on time needed to start application.
bundles.xml needs to be optimized to decrease download size.

                                    

Comments
EVALUATION

Primary goal is to decrease footprint for small applications and applets.
We can assume that at least on first run graphical application is used in majority of cases.

Therefore several typical scenario can be considered:
  1) pure AWT applet
  2) small Webstart application
  3) FX demo app
  4) small swing application run from jar
etc.

Based on analysis of what is needed for different applications and recent improvements in the j2se codebase number of improvements are possible. Some examples:
  1) Most of application need only few security or xml classes
  2) Utility classes should not be pulled into auxilary bundles such as security 
      (otherwise if app needs only utility class then it has to download extra files)
  3) We should not put awt classes into swing bundles because they can be needed 
     for pure AWT applications
  4) Language specific resource files can be moved to separate bundles 
     and downloaded if lang support is needed
  5) Some libraries, such as dcpr.dll can be moved to separate bundles.

These and some other ideas help to reduuce download footprint by 300-1100k depending on application.
                                     
2007-12-17
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6641969/
                                     
2007-12-18



Hardware and Software, Engineered to Work Together