Git Product home page Git Product logo

doppio_jcl's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

doppio_jcl's Issues

Break up JCL into individual JAR files

Currently, DoppioJVM issues a network request for every individual uncompressed class file it needs to load. This is awful when you are not on a fast connection.

It would be much better to package the JCL into multiple jar files, perhaps through subdividing the packages. I will need to do an experiment to see what packages are touched by which programs, to see if there's a sensible separation that can minimize network time.

  • Enumerate GUI-related packages (e.g. .awt. and .swing.), and segment off to a separate JAR file.
  • Avoid integrating ecj's source into java_home. There's no need for that anymore, now that Doppio has built-in JAR file support.
  • Experiment to determine other useful segmentations.

Use zopfli compression on jar files

file Before After
rt.jar 62MB 29MB
tools.jar 18MB 7.3MB

Command used:

advzip --recompress -4 --iter 4 rt.jar

This is using the 1.18 version of advancecomp that comes with ubuntu 14.04 LTS. Newer versions might give better compression.

Also increasing the number of iterations might improve compression.


Note: it takes a long time to compress (half an hour on my system for rt.jar). But according to the zopfli documentation, it has none to negligible impact on decompression.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.