Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9cca11c

Browse files
committed
Speed up SUM calculation in numeric aggregates.
This introduces a numeric sum accumulator, which performs better thanrepeatedly calling add_var(). The performance comes from using wider digitsand delaying carry propagation, tallying positive and negative valuesseparately, and avoiding a round of palloc/pfree on every value. Thisspeeds up SUM(), as well as other standard aggregates like AVG() andSTDDEV() that also calculate a sum internally.Reviewed-by: Andrey BorodinDiscussion: <c0545351-a467-5b76-6d46-4840d1ea8aa4@iki.fi>
1 parent9f85784 commit9cca11c

File tree

3 files changed

+522
-103
lines changed

3 files changed

+522
-103
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp