Git Product home page Git Product logo

Comments (9)

trycatchx avatar trycatchx commented on May 18, 2024

@yygutn 效果展现的柱状图是基于 一个 3W 个类文件(不包含第三方库),68个module 的工程的效果展现。
如果使用 demo 做速度测试,其中每一个 module 仅只有一两个 class,并没有对比意义(demo 只是为了测试解决依赖的替换和插件正常运行)

原生编译:对于一个模块A的改动,任何依赖了 A 的模块都会重新编译(如果A 是 comm 模块基本整个项目都要编)
插件加速编译:对于一个模块A的改动,只编译 A 和 app 模块

综上在插件能做到只编译改动模块。原生编译则不行。

所以是否变快很容易得出结论了。

from rocketx.

yygutn avatar yygutn commented on May 18, 2024

好的吧,对于includeBuild是否支持呢

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@yygutn 目前还没做 includeBuild 混合构建的测试。还没支持上来。

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@yygutn 如果你这边有这方面的经验和环境,欢迎提 PR

from rocketx.

yygutn avatar yygutn commented on May 18, 2024

@trycatchx 最近在试用的时候,经常遇到这个问题: Type XXX is defined multiple times, clean build后就好了
发生的场景是,修改了某个module的依赖,重新sync,如果不clean一次,直接build就会出现问题

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@yygutn 使用最新的1.0.6试试。

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@yygutn 这种引起类重复的原因是:项目使用了自定义的 transforms ,然后在gradle 没有增量的情况 遗漏调用 outputProvider.deleteAll() ,导致 依赖变化时候,module 换成 aar ,module 缓存没剔除 ,又多了一份一模一样的 aar 。(不使用 rockext 插件,模块更新也会出现这种问题)

建议在debug 阶段如果使用了 transform 通过以下代码禁止,如果没影响的话。速度还会更快(内部目前禁用了 arouter 神策 等插件):

 RocketX {
        // 禁用可禁用的 transform ,速度更快
        transFormList = ["sensorsAnalyticsAutoTrack","..xx"]
    }

from rocketx.

yygutn avatar yygutn commented on May 18, 2024

谢谢大佬,真实勤劳的小蜜蜂 @trycatchx

from rocketx.

zxhandroid avatar zxhandroid commented on May 18, 2024

有些不能禁用的话,怎么处理呢,./gradlew clean 后,还是会报重复类的错误

from rocketx.

Related Issues (20)

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.