Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7zip 到底压缩了什么内容 #122

Closed
googleapivalid opened this issue Jan 12, 2017 · 3 comments
Closed

7zip 到底压缩了什么内容 #122

googleapivalid opened this issue Jan 12, 2017 · 3 comments

Comments

@googleapivalid
Copy link

Repackage with 7zip. 这句话的意思是工具压缩了什么内容呢?

resources.arsc 在 APK 安装之后仍需要被频繁的读取,如果将它进行压缩,在每次读取前系统都必须进行解压的操作,从性能上考量这显然是得不偿失的。所以,赶紧摒弃通过压缩 resources.arsc 来给 APK 瘦身的方法吧。

目前这个工具只是说类似proguard通过缩短文件路径,名称之类的减小size的对不对? 没有压缩resources.arsc吧?

@simpleton
Copy link
Collaborator

simpleton commented Jan 12, 2017 via email

@simpleton
Copy link
Collaborator

@googleapivalid

compressFilePattern = [
        "*.png",
        "*.jpg",
        "*.jpeg",
        "*.gif",
        "resources.arsc"
    ]

相关配置在这里。

你引用这段话我曾经在closed的issue中解释过,#84。对运行时的性能影响不大。

@googleapivalid
Copy link
Author

好的,谢谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants