Jump to content
You must now use your email address to sign in [click for more info] ×

Application binary size aka the return of the fat binaries


Recommended Posts

"Optimised for M1". And a quick check of the app bundle size on Mac confirmed what we've feared: "the return of the fat binaries". Each binary (Photo, Publisher and Designer) is now at least 2.7 GB (!) in size each - from a previous 1.7 GB, if I remember correctly. Which is already way too much, but oh well.

And a quick checks confirms that, e.g.

lipo -info /Applications/Affinity\ Photo.app/Contents/MacOS/Affinity\ Photo
Architectures in the fat file: /Applications/Affinity Photo.app/Contents/MacOS/Affinity Photo are: x86_64 arm64

Now this is of course only the "main" binary, and each provided framework now comes for two architectures.

According to

  https://eclecticlight.co/2020/07/30/instant-weight-loss-how-to-strip-universal-apps/ 

it should be possible to strip away the unnecessary architecture (arm64 in my case), to slim down the binary size to approximately 1.7 GB in this case (give or take additional space for new features, although I don't think there are any new features except the new binary for ARM aka "Apple Silicon"), without breaking the code signature. However I am not going to do that right now, unless someone has already done this and possibly has an automated way to strip away the ARM64 architecture for all binaries and libraries within a given app bundle on Mac?

But let's face it: 1.7 GB is already way too much: it's not like those apps come with tons of graphic resources (like textures, brushes, or even video tutorials etc.) which would justify that enormous disk space being used.

 

Link to comment
Share on other sites

Yes that's how things are actually for Big Sur complient universal architecture apps (as mentioned previously here too). - However, I wonder that Apple didn't supplied any end user GUI tool for striping out unneeded architectures beside lipo, or does cleverly only installs the architecture relevant portions on any system. - But maybe here it's due to the fact to also support to execute iPad related software too then on either system architecture. Aka to execute shared apps.

BTW, some third party tools claim that they can deal with the removal of universal binaries ...

... but I never tried or used that one so far!

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

On 11/15/2020 at 11:08 AM, TillOliver said:

"Optimised for M1". And a quick check of the app bundle size on Mac confirmed what we've feared: "the return of the fat binaries". Each binary (Photo, Publisher and Designer) is now at least 2.7 GB (!) in size each - from a previous 1.7 GB, if I remember correctly. Which is already way too much, but oh well.

And a quick checks confirms that, e.g.


lipo -info /Applications/Affinity\ Photo.app/Contents/MacOS/Affinity\ Photo
Architectures in the fat file: /Applications/Affinity Photo.app/Contents/MacOS/Affinity Photo are: x86_64 arm64

Now this is of course only the "main" binary, and each provided framework now comes for two architectures.

According to

  https://eclecticlight.co/2020/07/30/instant-weight-loss-how-to-strip-universal-apps/ 

it should be possible to strip away the unnecessary architecture (arm64 in my case), to slim down the binary size to approximately 1.7 GB in this case (give or take additional space for new features, although I don't think there are any new features except the new binary for ARM aka "Apple Silicon"), without breaking the code signature. However I am not going to do that right now, unless someone has already done this and possibly has an automated way to strip away the ARM64 architecture for all binaries and libraries within a given app bundle on Mac?

But let's face it: 1.7 GB is already way too much: it's not like those apps come with tons of graphic resources (like textures, brushes, or even video tutorials etc.) which would justify that enormous disk space being used.

 

I tried this process on the beta and it didn't work. It seems most of the bulk is in the Resources direcxtory, not in the Affinity Designer/Photo/Publisher binaries

Perhaps the Devs can add this as a preference setting for the automatic updates?

2021 16” Macbook Pro w/ M1 Max 10c cpu /24c gpu, 32 GB RAM, 1TB SSD, Ventura 13.6

2018 11" iPad Pro w/ A12X cpu/gpu, 256 GB, iPadOS 17

Link to comment
Share on other sites

4 hours ago, ronnyb said:

...It seems most of the bulk is in the Resources direcxtory, not in the Affinity Designer/Photo/Publisher binaries

Well the shared libs are too build as universal architecture not just the executable binaries.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

  • 1 year later...

I just found again one of my good old NeXT OpenStep tools (a graphical front-end tool for Lipo) on one of my backup disks that I once ported to MacOS El Capitan. At that time I had already thought about making it available here for the community, but as so often never found the time to do so and to support it further then.

aflipo_tool.jpg.0ce1208d1548444c3003a5ebf8143685.jpg

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.