Daniel Becker has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18861 )

Change subject: IMPALA-11504: Specializing 
DecimalUtil::GetScaleMultiplier<int256_t>().
......................................................................


Patch Set 6:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/18861/6//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/18861/6//COMMIT_MSG@12
PS6, Line 12:
Indicate also here how much the speedup is resulting from this template 
specialisation.


http://gerrit.cloudera.org:8080/#/c/18861/6/be/src/benchmarks/decimal-util-benchmark.cc
File be/src/benchmarks/decimal-util-benchmark.cc:

http://gerrit.cloudera.org:8080/#/c/18861/6/be/src/benchmarks/decimal-util-benchmark.cc@26
PS6, Line 26: // Machine Info: AMD Ryzen 9 5950X 16-Core Processor
I agree with Lipenglin, we should mention that it was done in a Docker 
container.


http://gerrit.cloudera.org:8080/#/c/18861/6/be/src/benchmarks/decimal-util-benchmark.cc@53
PS6, Line 53: static volatile int64_t black_hole = 0;
I think in this case 'volatile_var' or something similar would be more 
descriptive - when assigning to this variable, the reader could have an idea 
that we have this variable to block the compiler from removing the code.

Also, a comment before this variable should describe why we have it.


http://gerrit.cloudera.org:8080/#/c/18861/4/be/src/util/decimal-util.h
File be/src/util/decimal-util.h:

http://gerrit.cloudera.org:8080/#/c/18861/4/be/src/util/decimal-util.h@37
PS4, Line 37:   // The scale upper bound for GetScaleMultiplier<int32_t>()
            :   static constexpr int INT32_SCALE_UPPER_BOUND = 
ColumnType::MAX_DECIMAL4_PRECISION + 1;
            :   // The scale upper bound for GetScaleMultiplier<int64_t>()
            :   static constexpr int INT64_SCALE_UPPER_BOUND = 
ColumnType::MAX_DECIMAL8_PRECISION + 1;
            :   // The scale upper bound for GetScaleMultiplier<int128_t>()
            :   static constexpr int INT128_SCALE_UPPER_BOUND = 
ColumnType::MAX_PRECISION + 1;
            :   // The scale upper bound for GetScaleMultiplier<int256_t>()
            :   static constexpr int INT256_SCALE_UPPER_BOUND = 77;
> These constants are referenced in decimal-test.cc and decimal-util-benchmar
Ok, we can let them stay.



--
To view, visit http://gerrit.cloudera.org:8080/18861
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I969e2977d51313e738f72c8246db003ae43a3782
Gerrit-Change-Number: 18861
Gerrit-PatchSet: 6
Gerrit-Owner: Xiang Yang <[email protected]>
Gerrit-Reviewer: Anonymous Coward <[email protected]>
Gerrit-Reviewer: Daniel Becker <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Xiang Yang <[email protected]>
Gerrit-Comment-Date: Mon, 03 Oct 2022 07:42:41 +0000
Gerrit-HasComments: Yes

Reply via email to