News for hackers. Stuff that matters.
Re:I shaved 187MB off United Airlines' 439MB iOS app by newman314 on Wednesday February 23, 2022 @01:56PM (#30444807)
Thanks! This is very interesting to see all the low hanging fruit. Out of curiosity, could you run Emerge on a few other common apps: the United app as well as Yelp, Twitter and TikTok?

Those seem to be the biggest consumer of storage for me.

Re:I shaved 187MB off United Airlines' 439MB iOS app by sond813 on Wednesday February 23, 2022 @04:05PM (#30446422)
I tried it out with Yelp and Twitter, both had a lot of bloat due to not stripping binaries. You can see this in the large "String Table" in both screenshots.

Yelp also has a large exports section for the main app binary, that's usually a sign of a problem because the main binary doesn't need to export any symbols, only frameworks do that.

Twitter has a handful of 4MB images, much bigger than images you'd expect in an app. I took a look at a few of these and they are just gradient background images that could have been drawn with something like core graphics to completely eliminate the need for an image.

Twitter: https://emergeassets.s3.us-west-1.amazonaws.com/Screen+Shot+...

Yelp: https://emergeassets.s3.us-west-1.amazonaws.com/Screen+Shot+...

Re:I shaved 187MB off United Airlines' 439MB iOS app by db48x on Wednesday February 23, 2022 @08:59PM (#30449401)
They're probably shipping their org chat. Artists and engineers are on separate teams, and when the artists want to redesign the look of the app it is easiest to photoshop a bunch of images.
Re:I shaved 187MB off United Airlines' 439MB iOS app by saagarjha on Wednesday February 23, 2022 @08:24PM (#30449177)
Yeah those images need to go, I found them earlier when using assetutil ;)