Giter Club home page Giter Club logo

Comments (16)

lhjgege avatar lhjgege commented on May 18, 2024 1

但是不同手机点击安装没有提升每次都是全量编译的感觉。因为我这里有多个手机所以会安装很多手机。如果每个手机都是全量编译那么感觉速度还是没提升的感觉。同一个手机我刚才测试了提升很大从3分钟提升到25S

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

1、检查 根目录/.gradle/.rockectx/.app/ 文件夹缓存是否生成。
2、并查看 执行的task 是否只有 app module 和 改动的module (其他module 的task 理论是不允许执行)
3、以上两点都正常请贴一下:耗时图
image
4、第一次是全量无增速效果,请查看2 次以上修改code 的编译速度

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024

我换一个手机点击安装的就会很慢

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024

换一个手机点击安装感觉像是重新全量编译。

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@lhj1079947827 换个手机 你可以用 assembledebug task 试试。 (直接点击 run ,as 对这方面有一定的处理)

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

你可以测试一下点击 run 在同一个手机的速度 是否有提升呢?

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024

同一个手机有提升的。

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

image
可以通过尝试使用 assembledebug task 运行(这个和换手机关系就不大了,应该可以满足你的需要)

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024


image

我这里没这个选项

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024


image

就修改两个类感觉时间忽快忽慢

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024


image

上面图就是compileDebugKotlin和transformClassesWithASMPPluginForDebug两个插件耗时

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@lhj1079947827 transformClassesWithASMPPluginForDebug 这个插件关闭是否会有影响:可以通过:

//app moudle 下的 build.gradle
android {
    //...
    //配置插件编译项
    RocketX {
        openLog = true
        //加速模式 禁用可禁用的 transform ,速度更快
        transFormList = ["ASMPPlugin"]
    }
}

插件的名字你需要确认一下是不是 :ASMPPluginForDebug,通过在build log 查找关键字: transFormList ,会有提示。

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@lhj1079947827 禁用之后 buildDex,以及 mergeDex 会更快。应该可以跑进10s内

from rocketx.

lhjgege avatar lhjgege commented on May 18, 2024

你是禁用那个插件,是上面两个插件吗

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

禁用ASMPPlugin

from rocketx.

trycatchx avatar trycatchx commented on May 18, 2024

@lhj1079947827 请问有效果吗?

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.