Apply the sp-rewrite shape to the three binary arithmetic ops. The tInt==tInt fast branch reads scalar directly (skips the AsNumInt method) so the hot path is int64 ops + an overflow check; mixed-type branches keep AsNumDouble unchanged. PRG tight loops (FOR counter, SUM accumulators outside SQL aggregate path) skip one cachedNil store and two bounds-check sequences per op. Verification - go test ./... ALL PASS - FiveSql2 test_sql1999 43/43 - tests/compat_harbour 56/56 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8.8 KiB
8.8 KiB