fastdex icon indicating copy to clipboard operation
fastdex copied to clipboard

我发现升级到gradle 插件到3.0.1第一次打包很慢,第二次就很快

Open tianshaokai opened this issue 8 years ago • 6 comments

  1. 我并没有使用fastdex插件
  2. 第二次基本每次都是19s完成
  3. 只不过我这次是在mac电脑编译的,没有试window 电脑升级后怎么样
  4. 跟电脑性能有关系吗?
  5. 3.0 里是不是做了大量的优化呢

tianshaokai avatar Dec 13 '17 02:12 tianshaokai

3.0打debug的包会很快,资源编译默认使用aapt2支持增量编译,代码那块dex缓存的颗粒变成以.class为最小单位了,所以相对于2.x会快很多

typ0520 avatar Dec 13 '17 07:12 typ0520

那fastdex 在3.0 里做了哪些优化呢?

tianshaokai avatar Dec 14 '17 01:12 tianshaokai

目前的fastdex版本只做了3.0的适配

typ0520 avatar Dec 14 '17 02:12 typ0520

楼主是不准备维护了吗?对于集成了tinker的project,instant run不能用,打dex包还是很慢的

jingyening avatar Aug 06 '18 06:08 jingyening

3.0打debug的包会很快,资源编译默认使用aapt2支持增量编译,代码那块dex缓存的颗粒变成以.class为最小单位了,所以相对于2.x会快很多

怎么知道这些信息的?

dede1314 avatar Dec 10 '18 11:12 dede1314

看build目录下的产物变化,以及Android gradle插件的源码发自我的华为手机-------- 原始邮件 --------主题:Re: [typ0520/fastdex] 我发现升级到gradle 插件到3.0.1第一次打包很慢,第二次就很快 (#81)发件人:dede1314 收件人:typ0520/fastdex 抄送:tong ,Comment

3.0打debug的包会很快,资源编译默认使用aapt2支持增量编译,代码那块dex缓存的颗粒变成以.class为最小单位了,所以相对于2.x会快很多

怎么知道这些信息的?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/typ0520/fastdex","title":"typ0520/fastdex","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/typ0520/fastdex"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dede1314 in #81: \u003e 3.0打debug的包会很快,资源编译默认使用aapt2支持增量编译,代码那块dex缓存的颗粒变成以.class为最小单位了,所以相对于2.x会快很多\r\n\r\n怎么知道这些信息的?"}],"action":{"name":"View Issue","url":"https://github.com/typ0520/fastdex/issues/81#issuecomment-445786895"}}}

[

{

"@context": "http://schema.org",

"@type": "EmailMessage",

"potentialAction": {

"@type": "ViewAction",

"target": "https://github.com/typ0520/fastdex/issues/81#issuecomment-445786895",

"url": "https://github.com/typ0520/fastdex/issues/81#issuecomment-445786895",

"name": "View Issue"

},

"description": "View this Issue on GitHub",

"publisher": {

"@type": "Organization",

"name": "GitHub",

"url": "https://github.com"

}

},

{

"@type": "MessageCard",

"@context": "http://schema.org/extensions",

"hideOriginalBody": "false",

"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",

"title": "Re: [typ0520/fastdex] 我发现升级到gradle 插件到3.0.1第一次打包很慢,第二次就很快 (#81)",

"sections": [

{

"text": "",

"activityTitle": "dede1314",

"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",

"activitySubtitle": "@dede1314",

"facts": [

]

}

],

"potentialAction": [

{

"name": "Add a comment",

"@type": "ActionCard",

"inputs": [

{

"isMultiLine": true,

"@type": "TextInput",

"id": "IssueComment",

"isRequired": false

}

],

"actions": [

{

"name": "Comment",

"@type": "HttpPOST",

"target": "https://api.github.com",

"body": "{\n"commandName": "IssueComment",\n"repositoryFullName": "typ0520/fastdex",\n"issueId": 81,\n"IssueComment": "{{IssueComment.value}}"\n}"

}

]

},

{

"name": "Close issue",

"@type": "HttpPOST",

"target": "https://api.github.com",

"body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "typ0520/fastdex",\n"issueId": 81\n}"

},

{

"targets": [

{

"os": "default",

"uri": "https://github.com/typ0520/fastdex/issues/81#issuecomment-445786895"

}

],

"@type": "OpenUri",

"name": "View on GitHub"

},

{

"name": "Unsubscribe",

"@type": "HttpPOST",

"target": "https://api.github.com",

"body": "{\n"commandName": "MuteNotification",\n"threadId": 285197331\n}"

}

],

"themeColor": "26292E"

}

]

typ0520 avatar Dec 10 '18 12:12 typ0520