Summary: | The "slim" and "fat" deployment options source zip's differ 20Mb in size. | ||
---|---|---|---|
Product: | [JogAmp] General | Reporter: | Xerxes Rånby <xerxes> |
Component: | builds | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 2.4.0 | ||
Hardware: | All | ||
OS: | all | ||
See Also: | https://jogamp.org/bugzilla/show_bug.cgi?id=1253 | ||
Type: | DEFECT | SCM Refs: | |
Workaround: | --- |
Description
Xerxes Rånby
2015-10-11 11:31:21 CEST
Invalid criteria/metric, only LOC would be sufficient and only iff there is no duplication or intentional 'take out'. I continue my rant here: Further more, the defect claim is not visible in the title of description. Wording like 'have grown lot in size' is too fuzzy -> LOC Wording 'differ' is also little qualifying and could be refined, since it forces one to _find_ a statement in the text. Note: A proper per module LOC analysis as well as a possible binary location should be performed. I did that for Fosdem 2013 I guess. Having above information, maybe there can be done a statement, whether a bug or of informal notion. Unpacking the "slim" and "fat" src zip's reveal that they do contain the same files and have the same unpacked footprint. du -s -h slim/ 32M slim/ du -s -h fat/ 32M fat/ Conclusion: the jogamp-fat-java-src.zip have much better compression! Question: why is the compression of the "slim" zip's that bad? The answer why the compression level of the "slim" src zips are bad is because we pass level=0 to ant when we create the "slim" zip's. Gluegen and JOGL uses level=0 compression http://jogamp.org/git/?p=gluegen.git;a=blob;f=make/build.xml;hb=HEAD#l1094 http://jogamp.org/git/?p=jogl.git;a=blob;f=make/build.xml;hb=HEAD#l267 JOAL and JOCL uses default compression http://jogamp.org/git/?p=joal.git;a=blob;f=make/build.xml;hb=HEAD#l811 http://jogamp.org/git/?p=jocl.git;a=blob;f=make/build.xml;hb=HEAD#l899 https://ant.apache.org/manual/Tasks/zip.html "level Non-default level at which file compression should be performed. Valid values range from 0 (no compression/fastest) to 9 (maximum compression/slowest)." The "fat" src zip is created by unpacking the four "slim" src zip's and creating a new zip using the zip commands default compression. http://jogamp.org/git/?p=jogamp-scripting.git;a=blob;f=jenkins-builds/funcs_promotion.sh;h=3896acbb4c8ff61baeef6a82cdb4ff545431badb;hb=HEAD#l294 Conclusion the difference in src zip sizes are caused by the compression level selected during creation of the "slim" src zip's. The reason we pass level=0 is to allow 7z to archive better compression when build the final jogamp-all-platforms.7z file http://jogamp.org/git/?p=gluegen.git;a=commit;h=1d614e360b2018c7f4b70ebf2c9322cae5cc9c7f Thus it is expected that the src-zip's inside the "slim" jogamp-all-platforms.7z archive to be larger compared to the "fat" deployment option src zip. |