Ever since Swift 3 and Xcode 8 my project compiles quite slowly. Every time I add so much as an empty line to a file, recompiling takes a full minute. When I check the outpu
I was able to greatly reduce my swift project compile times by avoiding the use the Nil-Coalescing Operator and string concatenation.
In otherwords where I had something like:
let x = "one" + object.nullableProperty ?? ""
I changed it to
let x = String(format: "one %@", object.nullableProperty ?? "")
My compile times have dropped drastically- from 20 minutes to 20 seconds.