model-writtenrun 3084 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Joel Jacobson proposed a separate mul_var_large() that paired base-NBASE digits and used 64-bit arithmetic to reduce multiplication work, reporting gains for large operands in #1.
- Dean Rasheed found inconsistent digit units in the truncation calculation and opposed duplicating mul_var(), so his replacement in #2 integrated the algorithm, reduced conversion overhead, and improved numeric_big performance, while exposing slowdowns for small operands on 32-bit builds.
- Dean addressed those slowdowns in #3 by introducing platform-dependent arithmetic paths and optimized constant division, and split out a companion patch extending mul_var_short() to five- and six-digit operands.
- Joel's benchmarks found some isolated regressions from the short-input patch but substantial net gains with both patches applied; Dean explained compiler and SIMD effects, and Joel requested a consistent loop bound while questioning the maintenance cost of the 32-bit path in #6, #7, and #8.
- Tom Lane argued that modest 32-bit performance losses were acceptable in #10, Joel recommended omitting the specialized code in #11, and Dean removed it for maintainability while retaining both optimization patches in #12.
- Joel initially judged both patches ready in #13, but expanded reduced-rscale testing uncovered last-digit discrepancies in #15; Dean traced these to incomplete guard-digit computation and posted the corrected truncation and weight calculations in #17.
- Joel's retest found far fewer discrepancies in #18, and Dean's targeted rounding tests showed that the remaining failures were a subset of existing failures in #20; Joel reproduced those results in #21 and found no observable differences across millions of exp() and power() inputs in #22.
- Dean committed the short-input component of #17 as c4e44224cf, adding parentheses to macro index arguments, and committed its general multiplication component unchanged as 8dc28d7eb8.
- Dean announced both commits in #23, explaining that transcendental functions remain inherently inexact and that occasional final-digit rounding differences were acceptable given the testing results.
- After landing, Tom reported buildfarm warnings about potentially uninitialized carry values in the refactored short-input code in #24, and Dean reported pushing a fix in #25.
- Following Tom's reminder in #26, Dean closed the committed work's commitfest entry in #27; Joel then withdrew the separate Karatsuba proposal because the multiplication improvements already achieved made further work seem less worthwhile, leaving both patches landed and Karatsuba deferred in #28.