[swift-evolution] Proposal: Swift should automatically modify your code to improve compile times.

Amir Michail a.michail at me.com
Sat Mar 5 12:03:36 CST 2016


> On Mar 5, 2016, at 12:14 PM, Chris Lattner <clattner at apple.com> wrote:
> 
> 
>> On Mar 5, 2016, at 5:23 AM, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> I think it’s too much to require Swift developers not just to profile their code to improve running times but also to profile the compilation of their code to reduce compile times.
>> 
>> Swift should automatically identify expressions that took too long to compile and automatically insert type annotations in the source code to speed up future compiles of those expressions.
> 
> I respectfully disagree.  The Swift compiler should just not require you to change your code in order for it to compile fast.  We’re working on it.
> 
> -Chris

I thought this type inference is exponential in the worst case.


More information about the swift-evolution mailing list