Commit 799f332
committed
refactor(@angular/build): hoist blob instantiation in i18n inliner batch loop
Instantiate codeBlob and mapBlob once per file outside the batch loop
instead of re-creating new Blob instances on each batch slice. Blobs are
immutable, read-only binary handles and can be safely shared across
multiple worker batch tasks concurrently.1 parent 4182b96 commit 799f332
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| |||
467 | 469 | | |
468 | 470 | | |
469 | 471 | | |
470 | | - | |
471 | | - | |
| 472 | + | |
| 473 | + | |
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
| |||
0 commit comments