SmartPack / PackageManager

Source code of Package Manager, an Application to Manage your Apps.
https://smartpack.github.io/PackageManager/
GNU General Public License v3.0
448 stars 59 forks source link

[Enhancement] keep list in memory #27

Open Efreak opened 3 years ago

Efreak commented 3 years ago

When searching the package list, it appears to be fetching the list again before applying the filter; it would be nice if the full list was kept in memory, so searching could be instant. The same goes for switching between theAll/System/User tabs at the top.

sunilpaulmathew commented 3 years ago

You;re right. At this moment, whenever user switch between options, Package Manager will try to re-acquire the package details again (same thing happened while searching as well). Infact, app doesn't save anything to memory. The main issue is, even we save everything in memory, loading applications will take lot of time especially on devices with a lot of applications installed. It is because UI needs to load some basic details (App name, icon etc.) each time. A really don't know there is a better method exist.

Efreak commented 3 years ago

I know it's possible, but might not be worth the bother. Some apps (AFWall+) have an option to skip loading the icons in a list of apps; this certainly speeds things up. I'm not an Android/Java developer, but this might also help, possibly?