Jul 2024

1 commit
Optimise numeric multiplication for short inputs.
9 Jul 2024Dean Rasheedmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #340 of 2 reviewers saw the final version

The src/backend/utils/adt/numeric.c implementation matches #34 after renaming mul_var_small() to mul_var_short() and accounting for base changes; Dean explicitly confirms this rename in #36. The commit credits Joel Jacobson and Dean Rasheed, with Dean also the source patchset's sender and author.

  • Dagfinn Ilmari MannsÃ¥kersaw an earlier versionLLM analysis, 88% sureSuggested extending the initial optimization to three- and four-digit operands using int128 in #3, prompting the experiment in #5 before the implementation was substantially reworked.
  • Ranier Vilelasaw an earlier versionLLM analysis, 82% sureReviewed the competing mul_var_int() implementation in #19, suggesting const qualification and identifying a comment typo in #20, before that implementation was abandoned in favor of direct digit multiplication.

Credits across 1 commit

Author
Dean RasheedLLM1
Committer
Dean Rasheed1

N LLM means N of the credits come from LLM analysis, not from commit trailers.