Build artefacts aren't cached?
Build artefacts aren't cached?
Posted Oct 29, 2024 10:03 UTC (Tue) by Wol (subscriber, #4433)In reply to: Build artefacts aren't cached? by Karellen
Parent article: The performance of the Rust compiler
Something along the lines of "pull in all include files, run md5 over the resulting artifact, and if there's a cache with that name that's the processed output. If there's no cache, run the 'source to IR' pass, plus any local optimisations, and dump that to cache".
Dunno whether it's practical, or how much it would save, but it would certainly save reprocessing the same source time and again, and if there's a decent bunch of optimisations you can run before you start linking with other files, it would save that too ...
Cheers,
Wol