Commit 2b06d66
lib: cache parsed source maps to reduce memory footprint
This also improves performance to map the stack trace when the
`Error.stack` is accessed.
PR-URL: #46225
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent c10e602 commit 2b06d66Copy full SHA for 2b06d66
File tree
Expand file treeCollapse file tree
1 file changed
+18
-8
lines changedOpen diff view settings
Filter options
- lib/internal/source_map
Expand file treeCollapse file tree
1 file changed
+18
-8
lines changedOpen diff view settings
Collapse file
lib/internal/source_map/source_map_cache.js
Copy file name to clipboardExpand all lines: lib/internal/source_map/source_map_cache.js+18-8Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
| 18 | + |
| 19 | + |
17 | 20 | |
18 | 21 | |
19 | 22 | |
| ||
141 | 144 | |
142 | 145 | |
143 | 146 | |
| 147 | + |
144 | 148 | |
145 | 149 | |
146 | 150 | |
| ||
149 | 153 | |
150 | 154 | |
151 | 155 | |
| 156 | + |
152 | 157 | |
153 | 158 | |
154 | 159 | |
| ||
162 | 167 | |
163 | 168 | |
164 | 169 | |
| 170 | + |
165 | 171 | |
166 | 172 | |
167 | 173 | |
| ||
296 | 302 | |
297 | 303 | |
298 | 304 | |
| 305 | + |
299 | 306 | |
300 | 307 | |
301 | 308 | |
| ||
310 | 317 | |
311 | 318 | |
312 | 319 | |
313 | | - |
314 | | - |
| 320 | + |
| 321 | + |
315 | 322 | |
316 | 323 | |
317 | 324 | |
318 | 325 | |
319 | | - |
320 | | - |
321 | | - |
| 326 | + |
322 | 327 | |
323 | 328 | |
324 | 329 | |
325 | | - |
326 | | - |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
327 | 337 | |
328 | | - |
| 338 | + |
329 | 339 | |
330 | 340 | |
331 | 341 | |
|
0 commit comments