uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Shut down the uProxy UI when in the background on Android to save RAM

Open bemasc opened this issue 9 years ago • 2 comments

In theory, uProxy is supposed to work correctly regardless of whether the UI is visible. When the UI is not visible (the window is closed), everything keeps working, even though the polymer code is unloaded.

On Android, we keep the UI running perpetually. If we could kill it when our app goes into the background, we might be able to free up a lot of memory. (However, note that there could be some code, like #2748, that needs to be refactored before this is actually safe.)

bemasc avatar Sep 02 '16 21:09 bemasc

Good call @bemasc! (Of course, a separate but related issue is that our UI needs so many resources in the first place - IIUC, it shouldn't, given how little it actually has to do. Hopefully the Polymer 1.0 upgrade and/or the hot pot implementation will improve things there soon.)

jab avatar Sep 02 '16 21:09 jab

Neat idea. Could this be a case where the app/extension split actually helps us?

trevj avatar Sep 07 '16 15:09 trevj