Commit 1b01b82
perf: A3 — length-tracked result assembly in encoderEngine
strcpy + strcat + strcat each re-scans the destination from the start
to find the null terminator. Replace with explicit strlen on each
source plus a single memcpy to copy result (including NUL).
Output bytes are unchanged.
time ./unittest (best of 3, user):
baseline = 114.13s
after A3 = 113.19s
delta = 0.82% cumulative
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5246c79 commit 1b01b82
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
1546 | | - | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
1547 | 1551 | | |
1548 | 1552 | | |
1549 | 1553 | | |
| |||
0 commit comments