Commit 22e7cd2
committed
perf(@angular/build): avoid encoding the inline source map before remapping
`generateMap` is `generateDecodedMap` followed by encoding the mappings to VLQ, and remapping
decodes whatever it is handed. The encoded string was therefore built only to be parsed straight
back, holding two representations of the largest structure involved in inlining a file at the
point where a build is already at its peak.
`generateDecodedMap` is used instead. The mapping resolution is unchanged: `hires`, `source` and
`includeContent` are untouched, and VLQ round-trips integers exactly, so the remapped output is
byte-identical. Verified over the output of a 10MB chunk with 488 messages, whose map carries
78,036 mapping segments across 303 sources.1 parent 38e48c7 commit 22e7cd2
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
268 | | - | |
| 271 | + | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
| |||
0 commit comments