Are those jetty/hsqldb or WAR sizes ?
Apart from the size another important issue is the number of external
dependencies we have which among other things makes dependency
handling a pain for extensions.
Here are some numbers from the 8.3M1 WAR:
The WEB-INF/lib takes 172M from which only 12M is pure XWiki jars.
In the WAR some of the biggest features are (size are the feature and
the dependencies used only by that feature):
* Full text search (close to 70M)
** Solr (~30M), including probably totally useless Jetty (yes in the
WAR) stuff (~2M)
** Tika (more than 33M probably not far from 40M, lots of small stuff
I was too lazy to count since Tika has an insane dependency tree full
of stuff used only by it)
* Jython and all its standard libraries (37M): used by code and python macros
* Old GWT Editor (~26M)
* Groovy+Ivy (7M + 1M): not really used in the XE flavor but required
to write a scheduler and many contrib extensions use it and don't
declare it as dependency
Things that would not be too hard to move to Contrib that would also
take several external jars in their luggage (which is also nice for
extensions, the less core extensions the less dependencies issues):
* Office server related stuff (would probably be a good idea anyway to
synchronize it more with LibreOffice than XWiki)
* Chart macro and renderer
* Rendering syntaxes not enabled by default (we already started this
with markdown and mediawiki which are the most used, all the others
are probably never used or very rarely)
* Captcha macro/renderer
* Formula macro/renderer
8.3M1 still includes CKEditor and Tour extensions jars which should
not be there anymore in 8.3 final.
On Sun, Sep 11, 2016 at 1:50 PM, Vincent Massol <vincent(a)massol.net> wrote:
Hi devs,
FYI here’s how the size of our XE distribution has evolved over the years:
https://www.evernote.com/l/AHe8M7Mpc8dLYbLXUUR4BNshyArvRhxM2e4
The sad news is that we’re working to reduce the size of the core for some time already
but globally over the years the XE size is still growing.
We started going in the right direction in XE 6.3 and 6.4:
* XE 6.2 = 222MB
* XE 6.3 = 212MB
* XE 6.4 = 210MB
But then starting with XE 7.0 we started to increase the XE size again:
* XE 7.0 = 211MB
* XE 7.1 = 225MB
* XE 7.2 = 226MB
* XE 7.3 = 230MB
* XE 7.4 = 230MB
* XE 8.0 = 229MB
* XE 8.1 = 230MB
* XE 8.2 = 233MB
FTR at some point we had:
* XE 2.0 = 79MB
* XE 3.0 = 111MB
* XE 4.0 = 142MB
* XE 5.0 = 181MB
* XE 6.0 = 211MB
Any idea of what we could do to back to reducing the size of XE?
Some idea:
* Remove the GWT Editor (close to 10MB)
The total is actually closer to 26M. You have to include things that
are only really needed for the WYSIWYG. gwt-servlet is 9M and WYSIWYG
WAR (which does not include gwt-jar) is 17M.
* Introduce a check in the build to fail it when the
distribution goes over, say, 0.5% more of a threshold (for 230MB, 1% = 1.15MB) so that
when we increase the size we’ll have to look at what is making that size increase and if
we think it’s ok then we increase the threshold. The idea would be to make us think about
it regularly. WDYT?
* <more idea here>
FTR I was reminded of this by a comment on a blog post: "En rapport avec XWiki, à
l'époque où j'ai connu Greenpepper, il y avait un pack de démo avec XWiki.
J'ai voulu refaire ce pack, mais j'ai l'impression que XWiki a pris un certain
nombre de méga bytes en quelques années ^_^ . Est ce qu'il y aurait une version light
disponible ?”
In short the guy said that XWiki seems to have increased size over the years and was
asking whether there was a lightweight version somewhere…
WDYT? Do we agree that we should try to contain the size and even start decreasing it if
we can?
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne