Hysen Labs
Open-source project
fastred/Optimizing-Swift-Build-Times avatar
fastred

Optimizing-Swift-Build-Times

GitHub describes it as Collection of advice on optimizing compile times of Swift projects.. The repository metadata lists Swift as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.

3,587 stars143 forksSwiftMIT
01
DEEP OPEN-SOURCE ANALYSIS

fastred/Optimizing-Swift-Build-Times: Optimizing Swift build times

GitHub describes it as Collection of advice on optimizing compile times of Swift projects.. The repository metadata lists Swift as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.

02
DEEP OPEN-SOURCE ANALYSIS

Repository scope

GitHub describes it as Collection of advice on optimizing compile times of Swift projects.. The repository metadata lists Swift as its primary language. The metadata lists the MIT license. The README describes the project this way: Swift is constantly improving ❤️. For the time being, though, long compile times persist as a big issue when working on medium-to-large apps. The goal of this project is to gather all there is that can help you shorten your build times.

03
DEEP OPEN-SOURCE ANALYSIS

Incremental Compilation Mode with No Optimization

The README section "Incremental Compilation Mode with No Optimization" states: Until Xcode 10, it was common to enable Whole Module Optimization to speed up Debug builds. It was a workaround that's no longer needed in Xcode 10!

04
DEEP OPEN-SOURCE ANALYSIS

Incremental Compilation Mode with No Optimization

The README section "Incremental Compilation Mode with No Optimization" states: Currently, the recommended setup is to have Incremental Compilation Mode set for Debug builds and Whole Module for Release builds. Also, No Optimization should be chosen for Optimization Level setting of Debug builds.

05
DEEP OPEN-SOURCE ANALYSIS

Type checking of functions and expressions

The README section "Type checking of functions and expressions" states: Swift build times are slow mostly because of expensive type checking. By default Xcode doesn't show code that's slow to compile. You can instruct it to show slowly compiling functions and expressions, though by adding:

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes