smaller footprint
smaller footprint
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.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


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.
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.