smaller footprint

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sivakd

smaller footprint

Post by sivakd » Tue Oct 26, 2004 1:06 am

Hi, right now the chart jar file is about 950 kb and the jcommon is another 350 kb. I use a few other LGPL components for my project and none of them are as big. Is it possible to create a smaller footprint libraries with features such as the "Chart Property Editors" mentioned in the roadmap as optional add-ons? Also, I don't use a lot of graphs such as the thermometer and polar charts. I might be able to create a smaller jar file to satisfy my needs, but I am worried about breaking the dependencies.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Oct 26, 2004 11:31 pm

JFreeChart hasn't been modularised in a way that would make this easy to do, but it is certainly possible if you know how the classes relate to one another. It hasn't been a high priority for me, since it is really only a big issue for applets, and very few developers are (to my knowledge) using JFreeChart in applets.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

zany
Posts: 20
Joined: Mon Mar 15, 2004 2:36 pm
Location: Germany

Post by zany » Thu Oct 28, 2004 1:10 pm

You might want to give obfuscation/shrinker tools like proguard a spin.

Be sure not to change the library interface (package structure folding/ aggressive overloading) otherwise you might violate jfreecharts license.

Its LGPL compliant if you can exchange the shrinked lib with the original distribution and your application/applet still runs, basicly.

Locked