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

v5版本使用JarArchiveOutputStream API的产物体积比JarOutputStream大 #442

Open
5peak2me opened this issue Dec 1, 2023 · 1 comment

Comments

@5peak2me
Copy link

5peak2me commented Dec 1, 2023

由于 toTransform 之后产物是一个jar,但实验发现使用 JarArchiveOutputStream API的产物比直接使用java.util.jar.JarOutputStream产物体积要大很多。

  • JarArchiveOutputStream
    Snipaste_2023-12-01_17-57-14
  • JarOutputStream
    Snipaste_2023-12-01_17-59-14
    测试重现代码很简单,可参考ModifyClassesTask。实际项目中,相差几百兆左右。
@5peak2me 5peak2me changed the title v5版本使用JarArchiveOutputStream API的产物体积比JarOutputStream大的问题 v5版本使用JarArchiveOutputStream API的产物体积比JarOutputStream大 Dec 1, 2023
@602376887
Copy link

这里output有办法支持增量吗,不然dexbuild的耗时会很高

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