java - Why does using the unnamed package or smaller package names makes the Jar smaller? -


i wasn't able find information why using shorter names on packages or using unnamed package (default package) makes jar size smaller.

i've read obfuscators strip unused classes , make names of remaining ones smaller , reduces jar size. , i've tried self , using unnamed package in 1 of applications got 1.2% reduction in file size. couldn't find trustworthy information on why happens. can assume because of overhead long name introduces. still appreciate tips on how justify this.

initially got idea document: http://carfield.com.hk/document/java/articles/efficient_midp_programming.pdf

it doesn't explain why though.

jar files zip files extension , special (and optional) folder named meta-inf. each file or folder there header associated. headers take space of jar better keep less files in it, if took bare minimum keep files in root directory.

for midlet distribution jar file must have meta-inf folder so, best space usage, jar files should have folder. midlet , other classes should on default package. same resource files, keep of them @ file root.

as seen in http://smallandadaptive.blogspot.com.br/2008/09/keep-it-flat.html


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -