News for hackers. Stuff that matters.
Re:Still in love with Rust by adrianN on Thursday November 22, 2018 @03:45AM (#18508731)
That really heavily depends on the kind of code. Template metaprogramming slows down the compiler a lot.
Re:Still in love with Rust by EugeneOZ on Thursday November 22, 2018 @03:50AM (#18508748)
So sometimes it takes couple of seconds, sometimes couple of hours? Maybe there's some approximate range.
Re:Still in love with Rust by skrimp on Thursday November 22, 2018 @04:17AM (#18508860)
C++ compile times heavily depend on the code that is being compiled and the build system that is compiling it. Code that doesn't touch STL or boost or do much metaprogramming of its own is going to compile extremely fast (especially when compiled in parallel). Code that pulls in half of boost isn't going to compile so quick without tweaking the build settings. Due to how variable compilation times are, I don't think the range you provided is that unreasonable. Build time is something that changes on a project to project basis.