3 ms·
The critics are right that the build times are slow even in debug mode, and that it's one of the most frustrating things about the language even for experienced
by ReactiveJelly 5y ago
The critics are right that the build times are slow even in debug mode, and that it's one of the most frustrating things about the language even for experienced users.
There are some alternate codegen backends that aim to fix this by compiling less-optimized debug builds more quickly.
- sodality2 5y agoOoh, got a link to any of those alternate backends?
- pjmlp 5y agoFor example Cranelift and using lld as linker. Also read the Bevy documentation about improving build times.
- PoignardAzur 5y agoI wouldn't hold my breath too much. Something I noticed since I've started timing builds is that codegen and linking usually takes less than 30% of the build time for an incremental build. So in practice, switching to Cranelift and lld/mold will shave maybe 2 seconds off a 10-seconds build. Better, but still flow breaking. If we want Go-like compile times, we're going to need some more fundamental improvements to the compiler.