3 ms·
Is there anything we can do to bring an order of magnitude of improvement to compilation time? I know incremental compilation is by crate, how about by file lik
by nabakin 4y ago
Is there anything we can do to bring an order of magnitude of improvement to compilation time? I know incremental compilation is by crate, how about by file like C and C++ do?
- Rusky 4y agoIncremental compilation is already even more fine-grained than by file- it is based on rustc's internal query system. There is room to improve parallelization, though. Cargo will parallelize invocations of rustc (by crate) and rustc will parallelize backend code generation (functions in a crate are load balanced automatically) but the frontend is still not parallel.