Commit 2cdf52b
perf: B5 — DEBUG-build sanity check for companion tables
Under -DDEBUG, initCompanionTables asserts that every precomputed value
matches the macro-derived one. Free correctness guard during development;
zero cost in release.
Verified: both -O3 and -O0 -DDEBUG builds pass the unit suite.
time ./unittest -O3 (best of 3, user):
baseline = 114.13s
after B5 = 99.73s
delta = -12.6% cumulative
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3416f87 commit 2cdf52b
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
411 | 425 | | |
412 | 426 | | |
413 | 427 | | |
| |||
0 commit comments