Ivan, the Language Mangler 🦀 on Nostr: How I [the author of the article] reduced (incremental) Rust compile times by up to ...
How I [the author of the article] reduced (incremental) Rust compile times by up to 40%, https://www.coderemote.dev/blog/faster-rust-compiler-macro-expansion-caching/.
The idea is pretty simple but clever: cache the output of proc macros, if it hasn’t changed, no need to recompile the associated code.
The author explains the caveat of this approach as not all proc macros are pure.
#RustLang #compiler #performance #macros
The idea is pretty simple but clever: cache the output of proc macros, if it hasn’t changed, no need to recompile the associated code.
The author explains the caveat of this approach as not all proc macros are pure.
#RustLang #compiler #performance #macros