Live data from Hacker News

Why is the Gmail app 700 MB?

akr.am

141–150 of 403 posts

Re: Why is the Gmail app 700 MB?

#141
post #69

Earlier quoted context omitted.

it's ahead of time and AOT compilation is done at OS startup, not sure if that is being measured here.

OS startup? AOT compilation happens in the build pipeline, before the app is distributed.

Wouldn't compilation during the build process be ROT? As in, "Right On Time" compilation? Build is where the compilation step is usually performed.

Re: Why is the Gmail app 700 MB?

#142
Maybe because it’s an Electron app?

Sure, Electron does not come natively for iOS. But with tools like Capacitor, you can take a web app (even an Electron one) and package it for iOS/Android, adding native features and running in a native WebView, allowing it to be an “Electron for Mobile”.

Re: Why is the Gmail app 700 MB?

#143
I'm assuming one reason is frameworks. They can get quite big.

Another reason, is rusty code (not Rust. It's a play on the saying "Code doesn't rust", which I used to hear, last century).

It does, indeed, rust. Actually, "rots" is probably more apropos.

I'll bet that's the reason that Xcode is such a pig (makes GMail look like an anorexic).

Code is created that people no longer understand, so they are loath to make large changes. They just do enough to fix a bug, and pray that they don't need to dig any deeper. One of my first software jobs, was exactly like that.

When that happens, the code never shrinks. It just accretes.

Re: Why is the Gmail app 700 MB?

#147

Earlier quoted context omitted.

Is it plausible that the libraries are so big? I mean, for example, NodeJS is in the order of 100mb and contains the whole v8 engine. The Gmail app size has to be assets, right?

Static linking will do that. Imagine you have 400mb of binary objects your app depends on. Libraries your company uses for app analytics, SSO, 2FA, Corporate service bus api, etc. You statically link all those for your 50mb Swift UI app and bam, you’re in the 700mb range.

That's a lot of code, though. I can't imagine common libraries so big. The Linux kernel is less than 100mb.

Re: Why is the Gmail app 700 MB?

#149
I just looked at Gmail on my Android phone and it is only 164 MB. That is a big difference.

Also, one thing that annoyed me when I used iPhones is that you can't remove an app's cache without reinstalling it and losing all your data. And most modern applications think cache is free so they use a lot of it. Many times it will exceed even your installed apps or data size.

Re: Why is the Gmail app 700 MB?

#150
post #147

Earlier quoted context omitted.

Static linking will do that. Imagine you have 400mb of binary objects your app depends on. Libraries your company uses for app analytics, SSO, 2FA, Corporate service bus api, etc. You statically link all those for your 50mb Swift UI app and bam, you’re in the 700mb range.

That's a lot of code, though. I can't imagine common libraries so big. The Linux kernel is less than 100mb.

The neat thing about code is that there's no upper limit on how inefficient one can get.
Post reply on HN