3 ms·
I see — thank you for the information! Do you happen to also know if there is any ongoing work in rustc to make compilation faster for this situation? I’m ima
by malcolmgreaves 2y ago
I see — thank you for the information!
Do you happen to also know if there is any ongoing work in rustc to make compilation faster for this situation?
I’m imagining that one could typecheck and then see if ASTs are used / unused and eliminate them before generating code. Maybe that would speed up compilation? Perhaps this is already being done.
- the_mitsuhiko 2y agoRust's compilation unit is an entire crate. There is not much that can be done here as far as I can tell without changing the compilation model. It's not like C++ where you can just compile individual object files. You really are hoping that the linker cleans it up.