Giter Site home page Giter Site logo

jeta's Introduction

NOTICE: Project sadly discontinued

jeta's People

Contributors

brooth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pavlo-svirin

jeta's Issues

Default Metasitory implementation has performance flaws

Using *.class constants in MapMetasitory triggers eager loading of those classes (including invocation of static initializers). Classloading is slow and triggering too much of it early is a major anti-pattern. Square (creators of Dagger) stumbled upon the issue of excess classloading in Dagger 1, which was combining moderate use of reflection with APT. That caused some Dagger contributors to become so deeply disillusioned with whole thing, that they created Dagger 2, which forces it's users to write names of not-yet-generated classes in code (which IMO is a bit too much).

A possible workaround is to map class names to constructors instead:

private static getMetacodeInner(String className) {
    switch(className) {
        case "com.example.HelloWorld":
            return new HelloWorldMetacode();
         case "com.example.SomeOtherClass":
            return new SomeOtherClassMetacode();
        default:
            return null;
    }
}

This approach is still Proguard-friendly and does not cause excess classloading in any modern JVMs. In addition it avoids creation of an unnecessary map (especially since all required information is already available at compile time).

Metacode rebuild very slow

metacode rebuild take very long time, even there is only one file modified.
utd.enable set to true in jeta.properties

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.