fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Investigate if we can reduce app installed size (currently 169 MB)

Open mcomella opened this issue 7 years ago • 12 comments

What/user problem

The installed size of v2.3.0 is 169 MB on my Pixel 2 (N.B.: this excludes user data and cache): this seems rather large, especially compared to the ~57 MB download size.

Impact

I'm concerned users will be more likely to uninstall the app if it takes up a lot of space on their devices, especially for older devices with less storage.

Acceptance criteria

  • ?

I notice we don't set the extractNativeLibs flag (explanation) so it defaults to true. This means the native libraries are copied & decompressed out to disk on installation, a little more than doubling the size they take up on device: I wonder if this could make up the entire difference.

We could also consider Android App Bundles to reduce the size.

┆Issue is synchronized with this Jira Task

mcomella avatar Nov 11 '19 22:11 mcomella

FWIW: Fennec is 174MB after installing.

sblatz avatar Nov 12 '19 18:11 sblatz

FWIW: Chrome is 27 MB after installing on my Pixel 2. Perhaps they use app bundles and extractNativeLibs to reduce their APK size.

mcomella avatar Nov 12 '19 21:11 mcomella

I don't think that is realistic comparison. Is the Blink/WebView engine counted in the 27 MB?

kbrosnan avatar Nov 12 '19 22:11 kbrosnan

I don't think that is realistic comparison. Is the Blink/WebView engine counted in the 27 MB?

I verified the engine is not included in the APK and I agree that from a dev perspective it's not a realistic comparison.

However, this is what users will compare the apps :\ so we should take that into account.

mcomella avatar Nov 13 '19 00:11 mcomella

FWIW: Chrome is 27 MB after installing on my Pixel 2. Perhaps they use app bundles and extractNativeLibs to reduce their APK size.

It's 267 MB for me.

And latest nightly is 180 MB.

Xperia XZ1, Android 9

hkaancaliskan avatar Nov 13 '19 08:11 hkaancaliskan

Galaxy S7, Android 8. Chrome also takes much more than 27MB: Chrome size Fresh install of Chrome Beta is a little bit smaller, but still >150MB Chrome Beta size Firefox Preview and Firefox Preview Nightly are comparable to standard Chrome (179MB for Preview and 190MB for Nightly)

oplik0 avatar Nov 17 '19 11:11 oplik0

Thank you all for screenshots from your devices. There is no need to add more of them. The Chrome size on your device will depend on the Android version. For Android 10 they broke Chrome and the Webview into separate parts. Users on Android 10 would need to sum the Webview and Chrome sizes to compare to Firefox.

kbrosnan avatar Nov 17 '19 20:11 kbrosnan

Thank you all for screenshots from your devices. There is no need to add more of them. The Chrome size on your device will depend on the Android version. For Android 10 they broke Chrome and the Webview into separate parts. Users on Android 10 would need to sum the Webview and Chrome sizes to compare to Firefox.

Got it. I updated my phone to 10 and size is 24+78=102MB.

hkaancaliskan avatar Nov 17 '19 20:11 hkaancaliskan

Perf triage: Eric will do a brief investigation into how much installed size affects retention rates.

mcomella avatar Nov 28 '19 00:11 mcomella

We can defer further investigation into installed app size for now. Prioritization as P3 is appropriate. I may file a separate ticket for user data and cache size as we have some signal there regarding churn.

ecsmyth avatar Jan 08 '20 16:01 ecsmyth

Temp files not being deleted is a good example of cache blowing up to an unexpected size. 1555115

kbrosnan avatar Jan 08 '20 16:01 kbrosnan

The perf team is tracking high level work on JIRA:

  • APK size: https://jira.mozilla.com/browse/FXP-465
  • user data size: https://jira.mozilla.com/browse/FXP-1202

Please open a new issue if you're having a specific problem we can address.

mcomella avatar Aug 03 '20 18:08 mcomella