Thanks, Steve! I'm well aware of the type checker's problems with 'lazy', and it's something I hope to address soon.
Re:Go Home Swift Compiler, You’re Drunk
by stevejohnson on Tuesday April 26, 2016 @09:00PM
(#11577075)
While you're here, I should say: first, thanks for your work, and second, it would be nice if the compiler could log the timing data in a consolidated form so my script wouldn't be necessary. :-) Regex-parsing and aggregating a bunch of log lines seems dicey.
Unfortunately, debug-time-function-bodies isn't an "officially" supported flag, so improving it isn't a high priority right now.
...That said, we'd be more than happy to take improvement PRs in this area, if you're feeling up for it!
Another common culprit of slow compile times is usage of lazy var.
https://github.com/irskep/swift_compile_times_parser