Commit 753c337
perf: A4 — single division per iteration in encodeBase31
Compute quotient once, derive remainder via subtraction so the loop
has one division-class op per character rather than two.
time ./unittest (best of 3, user):
baseline = 114.13s
after A4 = 114.35s
delta = -0.19% cumulative (within noise floor)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1b01b82 commit 753c337
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
1099 | 1101 | | |
1100 | | - | |
1101 | | - | |
| 1102 | + | |
| 1103 | + | |
1102 | 1104 | | |
1103 | 1105 | | |
1104 | 1106 | | |
| |||
0 commit comments