rspack-sources icon indicating copy to clipboard operation
rspack-sources copied to clipboard

perf: rm RawSourceMap

Open SyMind opened this issue 1 month ago • 1 comments

This PR removes the RawSourceMap intermediary to parse source maps directly from simd_json BorrowedValue for performance, and updates constructors and serialization accordingly.

  • Replace RawSourceMap with direct parsing from &mut [u8] using simd_json::to_borrowed_value
  • Update SourceMap::from_json/from_slice/from_reader signatures and implementations
  • Switch serialization call (but introduced a potential misuse of simd_json::to_string)

SyMind avatar Oct 20 '25 11:10 SyMind