-
Notifications
You must be signed in to change notification settings - Fork 734
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
Switch to interactive root shell #2018
Comments
What do you mean by "launch app control"? |
When I simply launch the app control in SD Maid the app does a total of 7 root requests to magisk. Maybe decrease them cause each su request is an intensive operation. |
Is it only the first time on a cold start?
Some calls may come from SD Maids initial setup routines.
Reusing shells across unrelated modules is possible but makes multitasking
more bug prone.
I'll have to look into each call.
Sandro Jäckel <notifications@github.com> schrieb am So., 23. Sep. 2018,
12:32:
… When I simply launch the app control in SD Maid the app does a total of 7
root requests to magisk. Maybe decrease them cause each su request is an
intensive operation.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2018 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABX1_SUc_LCDdVcixj1lV9Hmm4emFZGkks5ud2NFgaJpZM4W1cpo>
.
|
Cold start does 7 root requests and reload does two. I don't expect to bring it down to one but maybe 2 or 3 if it is easily achievable. |
Base setup
AppControl
|
3 is a basic command shell, but 4 is a filereader that internally uses a root shell too. 7 is the actual loading of installed apps, 6 is actually part of 5, because to load running apps we also need to know the installed apps. |
I think I can remove 4, by reusing 3's shell. I'll have to look more into whether we can do 7 first, then reuse it in 5 and 6. I've started on removing 4, but it's more complicated than I thought. Too exhausted for that now I want to release this beta. Pushing this to the next update 😅. |
Eliminated 4 by reusing 3's shell. Also eliminated 6 by ensuring 5 runs after 7. With 5 will reuse the cached data from step 7, so no extra shell will be launched. 7 -> 5 👍 The rest can't easily be eliminated without breaking seperation of concerns between the different parts of SD Maid. It would also get us into concurrency hell when multiple tools are running in parallel. |
SD maid would run a bit faster if you would use an interactive root shell and not doing 7 root requests to launch app control.
The text was updated successfully, but these errors were encountered: