dtolnay / watt

Runtime for executing procedural macros as WebAssembly
Apache License 2.0
1.25k stars 29 forks source link

Investigate more efficient implementation of `proc-macro2` #20

Closed alexcrichton closed 4 years ago

alexcrichton commented 4 years ago

Right now the [patch] implementation of proc-macro2 hasn't really been optimized at all, it's basically the fallback implementation in proc-macro2 itself. There's a number of aspects to it that may cause macros to be slower than they otherwise should be:

That may actually be it now that I think about it... I might be worthwhile investigating interning and/or Rc<Vec<TokenTree>> for wasm.