Emerge Tools Profile picture
Sep 18 13 tweets 5 min read Read on X
Do we know why the Tesla iOS app is 760 MB? Can it be made smaller? Does a bear...nvm

This is a fun one, b/c the Tesla app does something not many other apps do

🔬 Taking a look at Tesla's app size + exploring Image
Immediately what jumps out is that ~30% of the app is `Tesla.pck` (241.2 MB)

A .pck is a file format for bundling Godot assets (scenes, scripts, shaders, etc)

Out of all the app's that we download, this is *by far* the largest .pck included in an app Image
We can see Godot included in all of Tesla's plugins + the main app target

This is how Tesla creates 3d model interactivity in the app

(remember this b/c we'll be coming back to the plugins) Image
The cool thing about a .pck (and the internet) is that we can actually decompile it to see raw assets + project structure.

We can even open it in Godot 👀 Image
Image
That's the Godot functionality - how could Tesla make the app smaller?

Remember how Godot was shipping in each Plugin? There are 5 plugins in Tesla for a total of 188.3 MB

The contents of each Plugin appear to be ~nearly~ identical Image
We can see this pretty clearly in the diff between v4.47.0 and v4.42.0 when the app increased by 50 MB

Each plugin added the same three `SwiftModules_*.bundle` files + had similar increases in binary size Image
Image
A better way to look at it - the deep red is duplicate nodes (there are quite a few)

So ~190 MB (25%) of Tesla is coming from Plugins, which could be significantly reduced by using a dynamic framework Image
Other area for improvement - Tesla (uses RN) has a 96.6 MB main.jsbundle, but 26.7 MB is "debug info"

The debug info is meant to provide better stack traces, but it doesn't need to be in prod b/c you can provide it separately to crash reporters Image
A few other areas Tesla can reduce size

- Image optimization
- removing unneeded binary metadata
- minifying localizations Image
Some links if you're looking to dive in more:

Using Dynamic Frameworks
emergetools.com/blog/posts/mak…
gdsdecomp, the Godot decompiler we used
github.com/GDRETools/gdsd…
S/o @ssickle42 for the initial tag!
And lastly... now that we have our feet under us at @getsentry we're going to get back to active here so plz tag us if you want to know about an app!

You might even see a pretty different UI soon 👀👀👀

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Emerge Tools

Emerge Tools Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @emergetools

Jul 9
Exactly 1 year ago today, we had our biggest tweet ever about @gmail's iOS app size

And funny enough, Gmail's size is making the rounds again

🧵 Looking at why Gmail is ~700 MB (+ why it's increased by 100 MB in the last year) Image
Here's the original thread - would recommend checking it out for more info, but TL;DR

- Large main app binary
- Localizations
- Big share extension plugin
- Overhead from having many files in the app

Over the last year, Gmail has increased by 100+ MB

Most of that is coming from increases to the areas mentioned above

2024 → 2025
📱Main App Binary: 223 MB → 285 MB
🌐Localizations: 130 MB → 150 MB Image
Read 11 tweets
May 2
Ok, time for a bit of a rabbit hole

...or should we say... Deere hole 🤦

🧵 Looking through the @JohnDeere apps. (Pepe Silvia warning...iykyk)

p.s. l10n = localization
Some context - we were poking around our localization data and John Deere's "TractorPlus" & "Ops Center" jumped out

🚜 TractorPlus is 412 MB - 115 MB (32%) is l10n

⚙️ Ops Center is 276 MB - 114 MB (42%) is l10n

So why did this jump out?
Firstly, apps like FedEx (160 MB l10n) or Garmin Connect (90 MB) inefficiently use localizations

@Tinder recently wrote how they used Emerge to reduce size of l10n by 95%


@Airbnb did a similar optimization - we'll link to a few 🧵s at the bottommedium.com/tinder/how-the…
Read 13 tweets
Apr 14
ask and you shall receive 🫡

🧵 figuring out why @telepass is almost half a GB Image
For those who are unfamiliar with it, Telepass is an electronic toll collection system used primarily in Italy and other parts of Europe. Here's the general breakdown

It's a flutter app 🪽
Total install size - 457 MB
Frameworks - 417 MB 🫨
Main app target - 25 MB Image
91% of install size is due to frameworks, 293 of them to be exact

There are a number of reasons that apps would have so many frameworks, but usually it's to support complex functionality in the app, or to make the app more modular and independent for teams working in parallel
Read 9 tweets
Mar 25
What app has added the most number of dynamic frameworks in the last 3 months?

Hint: it's an old friend of ours 🤖
It's @EufyOfficial, who we wrote about a few months ago

They've added a bunch of new frameworks, but its not just that they've added a lot that's interesting, its *what* they've been adding 👀 Image
Of the new frameworks, they've added~20 RN frameworks and a handful of Flutter frameworks

Not ideal to keep adding both RN & Flutter 🤔 Image
Image
Read 7 tweets
Mar 24
When we tweet about RN apps that have room for improvement, we often used the General Motor apps as an example

WELL NO MORE 👏👏👏

🧵 How General Motors shrunk app size by ~70% Image
We wrote a deep dive on the four GM apps roughly a year ago

In it, we detailed how they could reduce EACH app by ~200 MB
The apps went above that, reducing app size by ~300 MB

The main optimization came from renivubg TardisHybridContainer, which is where the vast majority of bloat came from in each app. Basically this was a mess of a dynamic framework w/ inefficient assets + a large jsbundle
Read 7 tweets
Mar 18
What's truly wild here is that at the beginning of 2024, the T-Life app was 37.3 MB

It's now at 475 MB

🧵 How to 10x your app size Image
Image
General breakdown

Dynamic Frameworks: 195 MB
Main app binary: 159 MB
Asset catalog: 69 MB

fwiw, each of those are bigger than the entire app was ~14 months ago 🕵 Image
basically this is what T-Life did over the last year

The app used to have a few UI & Games bundles + a slim binary and that was it

Now it's largest dynamic framework (AzureCommunicationCalling) is bigger than the entire app used to be at 65 MB
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(