swift-compiler

Why does a simple Swift arithmetic operation compile so slow?

ぐ巨炮叔叔 提交于 2021-01-27 21:38:54
问题 In an attempt to optimize the build time of my app I've added the following to my OTHER_SWIFT_FLAGS : OTHER_SWIFT_FLAGS = -Xfrontend -warn-long-expression-type-checking=75 -Xfrontend -warn-long-function-bodies=75 I got a warnings for this specific type checking being slow, and I cannot figure out if I can help the compiler in some way here. var delay: TimeInterval = TimeInterval(index) * 0.05 Any suggestions what can be done to speed up the compile time for such basic arithmetic operations up