| Author |
Size does matter
|
Vladas Razas
Ranch Hand
Joined: Dec 02, 2003
Posts: 385
|
|
Hi, I am working on applet that should be very small (100-200k). I could use available libraries but their full size is not acceptable for me. Is there a way to strip library out of unused classes? Something like linkers do in C++ (static linking)? Something that would track if class is used or not. Best regards, Vladas
|
 |
Loren Rosen
Ranch Hand
Joined: Feb 12, 2003
Posts: 156
|
|
|
I think Dash-O does what you want (haven't ever used it though). There are probably others as well. You might ask in J2ME forums, since people doing J2ME are the most likely to have worried about reducing library size.
|
 |
Lionel Badiou
Ranch Hand
Joined: Jan 06, 2005
Posts: 140
|
|
Hello Vladas, I found Proguard useful for shrinking libraries. More over, the website present an interesting list of alternative tools. Hope that helps,
|
Lionel Badiou
CodeFutures Software
|
 |
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
|
|
|
Have you thought of using URLClassLoader to explicitly load the required classes? This can greatly reduce the initial size of the Applet, but adds to the runtime overhead.
|
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
|
 |
 |
|
|
subject: Size does matter
|
|
|