News for hackers. Stuff that matters.
Re:Rust in 2016 by steveklabnik on Friday August 14, 2015 @01:32PM (#10061469)
These kinds of checks take up very little of the overall build-time. Frankly, everything is dwarfed by LLVM optimization passes, which usually takes up about 50% of the time itself.
Re:Rust in 2016 by dbaupp on Friday August 14, 2015 @01:55PM (#10061626)
I think it's overreaching to say very little.

It's certainly true that the Rust compiler does quite a lot of analysis (more than Go), e.g. non-trivial type inference and borrow checking. In fact, a no-op build of libcore takes 12s for me, with 5s in type checking, 0.8s in borrow checking and less than 3s interacting with LLVM (~1s of which are LLVM actually running). Turning on optimisations pushes the LLVM time out to 4s. Similarly, libstd takes 8s to build without optimisations and LLVM only runs for 1.5s (type checking itself is about the same).

(The plan to make the compiler more parallel and more incremental improve these parts without affecting the quality of the generated code at all.)

Re:Rust in 2016 by steveklabnik on Friday August 14, 2015 @02:05PM (#10061701)
Fair enough, and also, all of this changes every release, so it's possible the kinds of numbers I'm seeing are due to my projects and the time at which I last paid attention to this.
Re:Rust in 2016 by pcwalton on Friday August 14, 2015 @03:15PM (#10062203)
To be fair, core has lots of generics which don't get translated by LLVM at that stage.