Skip to content

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

Merged
d4rken merged 4 commits into
mainfrom
appcleaner-faster-deletion
Nov 12, 2024
Merged

AppCleaner: Faster deletion when using Root/Shizuku on directories with many files#1464
d4rken merged 4 commits into
mainfrom
appcleaner-faster-deletion

Conversation

@d4rken

@d4rken d4rken commented Nov 12, 2024

Copy link
Copy Markdown
Member

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
@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

Development

Successfully merging this pull request may close these issues.

Appcleaner takes almost 30 minutes to finish it's job with root privilege while with shizuku takes a few seconds.

1 participant