logoalt Hacker News

willtemperleyyesterday at 4:16 AM2 repliesview on HN

A lot can be done by the programmer to mitigate slow builds in Swift. Breaking up long expressions into smaller ones and using explicit types where type inference is expensive for example.

I’d like to see tooling for this to pinpoint bottlenecks - it’s not always obvious what’s making builds slow.


Replies

ykonstantyesterday at 7:56 AM

>I’d like to see tooling for this to pinpoint bottlenecks - it’s not always obvious what’s making builds slow.

I second this enthusiastically.

show 1 reply
never_inlineyesterday at 12:11 PM

> Breaking up long expressions into smaller ones

If it improves compile time, that sounds like a bug in the compiler or the design of the language itself.