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

AppCleaner: Faster deletion when using Root/Shizuku on directories with many files #1464

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Nov 12, 2024

See commit msg:

Stop using deleteAll which did the recursion at a very high level, creating a lot of churn between the processes.
Introduce and use new recursive flag which allows delete to "delete all" and handles deletion inside the gateways.
No longer going back and forth between the processes, means that deletion of a large amount of files, using root or shizuku, is now much faster.

and

#1443 (comment)

Closes #1443

…side the gateway

Stop using `deleteAll` which did the recursion at a very high level, creating a lot of churn between the processes.
Introduce and use new `recursive` flag which allows `delete` to "delete all" and handles deletion inside the gateways.
No longer going back and forth between the processes, means that deletion of a large amount of files, using root or shizuku, is now much faster.

Fixes #1443
Previously, in dry-run mode, the performance was too good, because we skipped a large part of the inter-process-communication.
@d4rken d4rken added enhancement New feature, request, improvement or optimization c: AppCleaner c: IO SAF/Normal/Root access Root ADB ADB/Shizuku related labels Nov 12, 2024
@d4rken d4rken merged commit 2a57ab7 into main Nov 12, 2024
16 checks passed
@d4rken d4rken deleted the appcleaner-faster-deletion branch November 12, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADB ADB/Shizuku related c: AppCleaner c: IO SAF/Normal/Root access enhancement New feature, request, improvement or optimization Root
Projects
None yet
1 participant