getsentry / rust-sourcemap

A library for rust that implements basic sourcemap handling
Other
224 stars 27 forks source link

ref: Make SourceMap::adjust_mappings work in place #70

Closed loewenheim closed 1 year ago

loewenheim commented 1 year ago

This changes SourceMap::adjust_mappings to a method that mutates its receiver instead of a function that creates a new SourceMap out of references. This avoids a bunch of cloning of source contents and brings a marked performance improvement in my (local, nonscientific) injection tests.

This would require a major release.