Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331983

Summary: PBS Java Proxy size reduction: class dependency analysis (BCEL) followed by compression (pack200+GZIP)
Product: [Tools] PTP Reporter: Dieter Krachtus <dieter.krachtus>
Component: RM.PBSAssignee: Project Inbox <ptp-inbox>
Status: RESOLVED WONTFIX QA Contact: Greg Watson <g.watson>
Severity: enhancement    
Priority: P3 CC: arossi, ben, dieter.krachtus, roland
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Dieter Krachtus CLA 2010-12-07 02:40:07 EST
PBS Java server size increasingly becomes a problem. This is a showcase detailing a multi-step size reduction approach and its integration in the ANT build process. Below are performance and size reduction assessments.

Get started by reading the instructions in build_small.xml in the project org.eclipse.ptp.rm.pbs.jproxy

Size-Assessment:
We start with a given pbs server jar containing many unnecessary classes since it was created using the Eclipse export
mechanism that includes all dependend projects. Size: 30 MB

Jar after dependency analysis: 1 MB
Jar after compression (pack200+GZip): 350 kb


Performance-Assessment:
timestamp: [echo] Step #1: Creating dependency fileset 12/07/2010 08:11:42 AM

timestamp: [echo] Step #2: Create jar from dependecy fileset 12/07/2010 08:11:42 AM
[jar] Building jar: D:\workspace_flockingwords\_ant_bcel_bugfix\test-minim
al.jar

pack200-jar:
timestamp: [echo] Step #3: Compressing Jar (Pack200+GZip) 12/07/2010 08:11:45 AM

BUILD SUCCESSFUL
Total time: 5 seconds
Comment 1 Greg Watson CLA 2011-05-25 18:58:33 EDT
Superceded by new JAXB resource manager. Reopen if you think it's still relevant.