breautek commented on issue #608:
URL: https://github.com/apache/cordova-cli/issues/608#issuecomment-3234414265

   > [@breautek](https://github.com/breautek) - revisiting this. I am getting 
so frustrated with iOS build times. I am on Cordova 12.0.0 and cordova-ios 
7.1.1 and my mac with 64Gb of ram is taking 8 to 9 minutes to build my project 
now. Its just getting worse. Yet, on my windows 10 PC, building for android 
takes less than 10 seconds. What gives?!
   
   Obviously there's a lot of influencing variables here, but assuming you're 
using the same workstation as before, the i3 intel isn't exactly a powerhouse. 
It is the lowest tier computing chip that Intel offers, and today it is also 
quite dated. I don't know the specs of your windows 10 pc either. What are the 
build times on a base hello world app?
   
   I have a M2 Pro mac mini w/ 32gb of ram, and building the basic hello world 
app takes approximately 10 seconds. Building real projects that is fairly 
large, includes many plugins including several native modules and has build 
hooks for running webpack, sentry tasks, etc... can build the project in about 
40 seconds. On a clean build, the build time is marginally longer @ 52.8 
seconds.
   
   Building native modules is CPU and disk IO intensive. I see that before I 
pointed out that 8gb ram might not be sufficient. With 64gb of ram, you're 
likely CPU bound... e.g. compilation is going as fast as your CPU can handle.
   
   It's not something that is really measurable but java projects tends to be 
less resource hungry compared to projects that needs to compile to machine code 
(like ios). If you really wanted to compare ios build times with android build 
times on the same project, you should do it on the same machine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to