Commit 5aba598
Use all() instead of max() for dictionary bounds check
Replace max()+assert with all(|i| i < len)+assert for the per-chunk
dictionary bounds check. This avoids the reduction and allows the
compiler to vectorize 8 independent comparisons, improving dictionary
reads by ~19% over baseline (vs ~17% with max).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d69da72 commit 5aba598
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
518 | 521 | | |
519 | 522 | | |
520 | 523 | | |
| |||
0 commit comments