Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Very slow to apply patch on Android device #168

Open
fzyzcjy opened this issue Dec 27, 2020 · 3 comments
Open

Very slow to apply patch on Android device #168

fzyzcjy opened this issue Dec 27, 2020 · 3 comments

Comments

@fzyzcjy
Copy link

fzyzcjy commented Dec 27, 2020

Hi I try to use the applier on an Android device. However, for about 15MB old apk and 2MB patch file, it takes ~8s to complete. It is normal? (Seems to be very slow...) Thanks!

@sisong
Copy link

sisong commented Jun 4, 2021

Your newApk should used zlib and set compressLevel 9, so recompress it very slow when patch.
You can recompress the newApk by compressLevel 6 befor release, patch speed meybe to 2x (takes ~4s?)

@fzyzcjy
Copy link
Author

fzyzcjy commented Jun 4, 2021

@sisong Sounds reasonable, thanks!

@sisong
Copy link

sisong commented Jun 4, 2021

optimize speed, recompress apk can used muti-thread on android device, but need edit source code.

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

No branches or pull requests

2 participants