span_to_source
is extremely inefficient for Wasm plugins
#6852
Milestone
span_to_source
is extremely inefficient for Wasm plugins
#6852
Instead of passing only a string, we send the whole
SourceFile
twice.swc/crates/swc_plugin_proxy/src/source_map/plugin_source_map_proxy.rs
Lines 130 to 139 in 1bf9b37
This makes
span_to_string
extremely slow when the input is large.Found while working on #6404
The text was updated successfully, but these errors were encountered: