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 changes
SourceMap::adjust_mappings
to a method that mutates its receiver instead of a function that creates a newSourceMap
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.