zlacker

[parent] [thread] 2 comments
1. adastr+(OP)[view] [source] 2025-08-22 16:42:03
It is weird to lump C++ and Rust together. I have used Rust code bases that compile in 2-3 minutes what a C++ compiler would take literally hours to compile.

I feel people who complain about rustc compile times must be new to using compiled languages…

replies(2): >>pjmlp+E6 >>surajr+rX3
2. pjmlp+E6[view] [source] 2025-08-22 17:14:45
>>adastr+(OP)
There is a way to make C++ beat Rust though.

Make use of binary libraries, export templates, incremental compilation and linking with multiple cores, and if using VC++ or clang vLatest, modules.

It still isn't Delphi fast, but becomes more manageable.

3. surajr+rX3[view] [source] 2025-08-24 06:33:32
>>adastr+(OP)
If you use lto, rust compilation is far worse for comparable c++ code.
[go to top]