Commit 70461f6
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.
(cherry picked from commit 194be20)1 parent ab2ed18 commit 70461f6
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