4 ms·
Will the compiler performance eventually match C++, or are there fundamental limits to it?
by networkimprov 6y ago
Will the compiler performance eventually match C++, or are there fundamental limits to it?
- sanxiyn 6y agoRust already compiles as fast as C++ if you write in roughly equivalent style.
- moonchild 6y agoI'm not sure what your point is there; rust and c++ are both famous for having slow compile times. Languages with good compile times include: - C[1] (unless you go crazy with the preprocessor) - Go (unless you go crazy with code generation) - D (unless you go crazy with templates) 1. With TCC or similar. Gcc/clang compile times are just ok (though better than with c++; and interestingly, though gcc is slower for c++, it's faster for c).
- higerordermap 6y agoIt should in theory be better because of modules instead of header files. It is bad because rustc emits quite a lot of LLVM IR and lack of binary libraries / library caching.