GEOSwift / geos

GEOS packaging for SPM & CocoaPods
GNU General Public License v2.0
14 stars 22 forks source link

Slow to compile on clean build - any tips to help reduce? #22

Open mylogon341 opened 11 months ago

mylogon341 commented 11 months ago

On a clean build, this library takes about 35 seconds to compile on an M1 MacBook Pro.

In this screenshot we can see that the first red box is the geos compile, the 2nd box is all other SPM packages, and the 3rd box is the rest of my entire app. Screenshot 2023-10-19 at 3 20 34 pm

This wouldn't usually be a problem (especially during development with incremental builds), but considering when I'm running CI builds, it could be outputting ~10 builds a day from a clean repo pull, it can add up to substantial waiting times.

I currently pull in GeoSwiftMapKit via SPM, but I'm guessing the real issue is further upstream. Running Xcode 15.0.1

Does anyone have any tips or tricks to try and reduce this time at all? Thanks