Read Slow Swift Compiler Performance. Bookmarking for Xcode options -Xfrontend -warn-long-function-bodies=<limit> and -Xfrontend -warn-long-expression-type-checking=<limit>.