Live data from Hacker News

Why is the Gmail app 700 MB?

akr.am

81–90 of 403 posts

Re: Why is the Gmail app 700 MB?

#81

Earlier quoted context omitted.

The Gmail app takes 175 MB on my Android phone. That’s better than iOS, but still a lot for an e-mail app.

Probably bundles its own copy of Chrome just in case :)

I can totally imagine someone doing just that.

> Product Requirement: Even if the user deletes the Chrome app, the Gmail app must work to display HTML emails, the authentication screen including 2FA options, etc. Can’t rely on WebViews for security reasons.

Re: Why is the Gmail app 700 MB?

#82
post #15
post #8

Hacker News is currently sitting at 130 MB. I simply do not understand how these things are calculated but I suspect the calculated amount that the Chrome tab diagnostic isn't a consistent way of comparing to other application memory usages, or at least a mental model that makes sense to most people (e.g. whats a lot of memory consumption? what should it be? is it too high, is it too low? etc.)

Do you mean the RAM used by the tab? The article is talking about disk space

This thread 56MB on Firefox on Windows, 54MB on Edge.

Re: Why is the Gmail app 700 MB?

#83
post #44
post #10

Earlier quoted context omitted.

Emerge Tools has an old thread on why it's actually so big: https://x.com/emergetools/status/1810790280922288617

Thanks, that thread is great! They have a neat treemap breakdown here: https://www.emergetools.com/app/example/ios/com.google.Gmail 130MB is localization data. This detail was interesting too: https://twitter.com/emergetools/status/1810790291714314706 > There's over 20k files in the app, 17k of which are under 4 kB. In iOS, the minimum file size allocation is 4 kB, so having many small files causes unnecessary size b…

Yep, localization is a huge size bloat for enterprisey apps that support many locales. There is no Apple provided way to dynamically download select localization packs based on the device locale. Meta came up with their own solution: https://engineering.fb.com/2022/05/09/android/language-packs...

The small filesize issue is something we commonly see in games, was surprised to see it for Gmail.

And btw we open-sourced much of our analysis after being acquired by Sentry: https://github.com/getsentry/launchpad

Re: Why is the Gmail app 700 MB?

#84

Google and others are putting 2FA notifications in their regular apps like gmail. I had to open my gmail app to get a 2FA code instead of my google authenticator app today... which is very weird and probably increases the needed security of the gmail app in addition to the size

They use the YouTube app for this also.

Re: Why is the Gmail app 700 MB?

#85
post #44
post #10

Earlier quoted context omitted.

Emerge Tools has an old thread on why it's actually so big: https://x.com/emergetools/status/1810790280922288617

Thanks, that thread is great! They have a neat treemap breakdown here: https://www.emergetools.com/app/example/ios/com.google.Gmail 130MB is localization data. This detail was interesting too: https://twitter.com/emergetools/status/1810790291714314706 > There's over 20k files in the app, 17k of which are under 4 kB. In iOS, the minimum file size allocation is 4 kB, so having many small files causes unnecessary size b…

4kB is also the minimum file size on Linux, so I imagine a similar issue could exist on Android.

Re: Why is the Gmail app 700 MB?

#86
post #27

Earlier quoted context omitted.

It is also a conferencing app. That might explain some of the size.

I've been using gmail since the early beta days and was never aware of this functionality. But on closer inspection there appears to be a highly stylized (unrecognizable) camera icon there that takes me to, I guess the long lost cousin of Google Meet?? Why are these apps welded together? What a bizarre decision. I thought Meet went to The Graveyard along with Allo and Duo and Wave.

My work uses GSuite so I’m using Meet every day. I find it mildly useful to have the functionality built into the Gmail app but at the same time I see zero loss in having it be a separate app.

Re: Why is the Gmail app 700 MB?

#87
post #65

The table at the end is seriously misguided. You can’t compare the sizes of an iOS preinstalled app against a non-preinstalled app. It’s just a thin UI shell where the code for all the functionality is inside system frameworks. The Photos app is quoted at 4.2MB. Guess what, if you delete that, you still have system components to render photos, UI for a photo picker, perform analysis on photos such as face recognition…

You can though because a lot of those things you're talking about are available for any app. Sure Apple does have some private frameworks and what not that aren't available to everyone but I imagine if you wanted to recreate what the photo app is doing you'd be able to in 4.2mb or less.

Re: Why is the Gmail app 700 MB?

#88
post #66

Earlier quoted context omitted.

You must be a developer only :) https://www.securecodewarrior.com/press-releases/secure-code...

I think the joke is going over my head ^^; Maybe you mean 'just' a regular developer as opposed to a cryptobro? Edit: I see you added in a link. "The research found that more than half of the 1200 developers surveyed are unable to ensure that their code is protected from seven common vulnerabilities", hmm maybe it was not a joke? The article (or the survey it's based on) sounds extremely misguided though, sounding co…

> The article (or the survey it's based on) sounds extremely misguided though

Unfortunately the entire Internet is bloated with such extremely misguided jokes. Here is another extremely misguided joke:

"We have a fundamental problem in the way we develop software. A large percentage of software is created by people who were never trained on the basics of security. " [1]

[1]: https://buildingacareerinsecurity.com/why-developers-dont-kn...

Re: Why is the Gmail app 700 MB?

#89
The easy answer: Google simply does not care. Some mix of: they don't measure it, they don't look at it, they don't goal around reducing it, nobody's performance review is going to be better because they reduced it, no director is asking product teams why they're increasing the app size. It's not surprising why these companies don't care, because it's a tragedy of the commons. The better question is why is Apple allowing these companies to ship apps that unnecessarily take up a meaningful amount of storage space?

Re: Why is the Gmail app 700 MB?

#90

Well, something fishy is going on because there is literally no way that Safari, in its entirety, is 5.1 MB. The numbers for the others app seem similarly off. It would be really hard to believe that somehow Apple has found some magic formula to make their apps 100x smaller than Google and Microsoft. Much more likely is that the reporting by the OS is off somehow (probably most of the app functionality is tied up in…

Safari is just a wrapper around the system webview framework so it does make sense, although it makes the comparison very misleading.
Post reply on HN