dtolnay / watt

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

Optimize the wasm `proc-macro2` runtime #22

Closed alexcrichton closed 5 years ago

alexcrichton commented 5 years ago

This overall ensures that every type is cheaply cloneable and should help reduce extra allocations for types like Ident. Locally the runtime for the "giant serde benchmark" improved by nearly 40%, dropping the wasm execution time from 140ms to 80ms.

Closes #20