hywan,
@hywan@fosstodon.org avatar

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • megavids
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • JUstTest
  • lostlight
  • All magazines