3 ms·
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 inferen
by willtemperley 1y ago
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.
- ykonstant 1y ago>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.
- glhaynes 1y agoI'll third it. I've started to see more and more cargo culting of "fixes" that I'm extremely suspicious do nothing aside from making the code bulkier.
- never_inline 1y ago> 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.