Commit 30a2b0f
committed
perf(minifier): use atom_from_strs_array for template literal concat (#20386)
## Summary
- Replace 4 instances of heap `String` concatenation with `ctx.ast.atom_from_strs_array()`
- Avoids intermediate heap allocations by concatenating directly into the arena allocator
- Affects template literal merging and expression inlining into quasis
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent ed5a7fb commit 30a2b0f
File tree
2 files changed
+14
-13
lines changed- crates/oxc_minifier/src/peephole
- tasks/track_memory_allocations
2 files changed
+14
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
416 | 418 | | |
417 | 419 | | |
418 | 420 | | |
419 | | - | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
744 | 746 | | |
745 | 747 | | |
746 | 748 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
751 | 753 | | |
752 | 754 | | |
753 | 755 | | |
754 | | - | |
755 | | - | |
756 | | - | |
| 756 | + | |
| 757 | + | |
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
0 commit comments