3 ms·
I’m guessing Electron apps worked without explicit support via Rosetta 2, but with explicit support the performance should be better. And - speculating - I’d gu
by mcintyre1994 6y ago
I’m guessing Electron apps worked without explicit support via Rosetta 2, but with explicit support the performance should be better. And - speculating - I’d guess that there’s quite a lot of code in Electron apps that isn’t AOTed by Rosetta, and that it would have more performance implications there than a native x86 Mac App would just because it has a lot of ongoing transpilation to do. With this change they can cut out Rosetta 2, and run direct on ARM.
- The_Colonel 6y agoThe problem is that Electron is essentially 2 big VMs - you can AOT the VM code, but not the code VMs produce. So yes, rosetta performance loss on electron apps would be significantly larger than on native x86 apps. (I'm probably going to find out since I don't plan to ship ARM build of my electron app)
- mcintyre1994 6y agoOut of interest how come you don't plan to ship an ARM build? I naively didn't really realise there were any tradeoffs for the developer here.
- The_Colonel 6y agoI'm not a mac user so I don't own one. Currently I cross compile Mac (and Windows) build on a linux machine and from time to time test those builds in a VM (not sure about the legality). I don't think this will be possible with ARM build - cross compilation probably won't be supported for ARM, I can't run ARM VM on my x86 dev machine, there's the new requirement for mandatory notarization (possible only on mac) ... maybe more but that's enough anyway.