Hi all,
welcome to Andrea's extreme diet program!
Following yesterday's mail I've tried to get rid of the largest
dependencies and came up with a 6-7MB reduction without
removing the data directory.
Here is the list of removed offenders.
Getting rid of Xalan
-------------------------------
Removed dependency from main, from wms, and fixed the wms
capabilities code that depended on it more based on laziness than necessity.
Tested capabilities and SVG generation and usage (with burg style)
in both jdk 1.5 and jdk 1.6, it appears nothing broke.
2MB less, down to 51MB with current release directory
Getting rid of FOP
----------------------------
Apparently this is needed only to generate PDF out of SVG, which
we don't do.
Again, tried SVG usage and generation as above, all seemed to work
fine.
Removing this one got rid of other jars as well, result,
another 2MB removed. Down to 49MB.
Getting rid of BouncyCastle
----------------------------------------
These jars are iText dependencies, I guess they are used to generated
encrypted PDF but we don't have that atm.
Excluded them, tested PDF output, works fine too.
Down to 48MB
Using jpeg instead of PNG for the world image layer
--------------------------------------------------------------------------
This one was easy. Down to 46MB ("ls -lh" unit rounding is tricking
us into thinking 2MB less, that's not the case)
EditArea removal from web/core
----------------------------------------------
Confirmed nothing is using it.
Down only 100KB more, but hey, it was dead stuff anyways
ant-optional
-----------------
Not sure about this one, it is no more in the .war for me...
As said yesterday, not sure why it was in he 2.1.0 war to
start with?
Summary
--------------------------------------------------
I have the above patches ready for commit in a local GIT branch.
The pass a full build and interactive testing with jdk 1.50_22
and jdk 1.6.0_24.
I would suggest to commit them right away on trunk, have
developers give it a kick, and then ask on the user list for people
that heavily use SVG and PDF, telling them to please try out the
slimmed down version of GeoServer.
If nothing bad pops up we can backport on 2.1.x
Opinions?
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------