Post
And sure enough, this changed the 8 second expansion time into a 100ms! A bit more info can be found in the PR description here github.com/rust-lang/ru.... This should improve general speed of rust-analyzer in the majority of projects given how pervasive these kinds of macros are in Rust.
github.comproc-macro-srv: Reimplement token trees via immutable trees by Veykril · Pull Request #21097 · rust-lang/rust-analyzerFor macros, rust has the concept of TokenTrees and TokenStreams which are basically a tree-like form of the underlying tokenized input with (){}[] delimiters forming Groups (internal nodes) and all...
You can sponsor my work on rust-analyzer by the way :) github.com/sponsors/Vey...
github.comSponsor @Veykril on GitHub SponsorsHey, I am Lukas Wirth 👋
I am the current lead of the rust-analyzer team, a maintainer of https://github.com/salsa-rs/salsa and contributor to the jujutsu version control system.
3 reposts7 likes
No replies yet.