Commit 3917d45
committed
perf(renderer): pad trailing dashes in place without a temp String
`render_string_groups` padded each row with `row.push_str(&"-".repeat(n))`,
which allocates a throwaway String only to copy it into a row buffer that
already reserves the full width. Fill in place with `push` instead, matching
the dash-padding loop already in `render_fret`. Render output is unchanged
(PRD finding F4) and the render snapshot tests pass.1 parent 81f97be commit 3917d45
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
703 | 705 | | |
704 | 706 | | |
705 | 707 | | |
| |||
0 commit comments