-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
resources.arsc压缩会影响性能吗? #84
Comments
先说我的观点:我觉得会有影响,但影响非常小。 具体的benchmark我没有做过,但我觉得resources.arsc的压缩最大的劣势是内存而不是运行时的速度。不压缩的resources.arsc系统可以使用mmap来节约内存的使用。一个app的资源至少被3个进程所持有(自己, launcher, system),所以mmap可以很大的节约内存使用。而压缩的resources.arsc会存在于每个进程中,可以使用 你也可以选择不压缩resources.arsc,这里只需简单把这个选项从配置项的 |
Closed
Closed
微信也是因为内存问题所以不压缩的吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在知乎看到一篇文章(https://zhuanlan.zhihu.com/p/21543787) ,有一段话:
resources.arsc 在 APK 安装之后仍需要被频繁的读取,如果将它进行压缩,在每次读取前系统都必须进行解压的操作,从性能上考量这显然是得不偿失的。所以,赶紧摒弃通过压缩 resources.arsc 来给 APK 瘦身的方法吧。
请问resources.arsc压缩会影响性能吗?
The text was updated successfully, but these errors were encountered: