Skip to content

expression: implement vectorized builtinArithmeticMultiplyIntUnsignedSig#12834

Merged
sre-bot merged 20 commits intopingcap:masterfrom
yongchaoyan:master
Oct 22, 2019
Merged

expression: implement vectorized builtinArithmeticMultiplyIntUnsignedSig#12834
sre-bot merged 20 commits intopingcap:masterfrom
yongchaoyan:master

Conversation

@yongchaoyan
Copy link
Contributor

@yongchaoyan yongchaoyan commented Oct 20, 2019

What problem does this PR solve?

Implement vectorized evaluation for builtinArithmeticMultiplyIntUnsignedSig

What is changed and how it works?

BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticMultiplyIntUnsignedSig-VecBuiltinFunc-4                  78476             15206 ns/op               0 B/op          0 allocs/op
BenchmarkVectorizedBuiltinArithmeticFunc/builtinArithmeticMultiplyIntUnsignedSig-NonVecBuiltinFunc-4               26101             46294 ns/op               0 B/op          0 allocs/op

Check List

Tests

  • Unit test

@yongchaoyan yongchaoyan requested a review from a team as a code owner October 20, 2019 07:12
@ghost ghost requested review from SunRunAway and removed request for a team October 20, 2019 07:12
@sre-bot sre-bot added the contribution This PR is from a community contributor. label Oct 20, 2019
@CLAassistant
Copy link

CLAassistant commented Oct 20, 2019

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Oct 20, 2019

Codecov Report

Merging #12834 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12834   +/-   ##
===========================================
  Coverage   80.0396%   80.0396%           
===========================================
  Files           465        465           
  Lines        106957     106957           
===========================================
  Hits          85608      85608           
  Misses        14918      14918           
  Partials       6431       6431

}
res = x[i] * y[i]
if x[i] != 0 && res/x[i] != y[i] {
result.SetNull(i, true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is redundant.
The vectorized framework need not to SetNull here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have deleted that line
123

@yongchaoyan
Copy link
Contributor Author

yongchaoyan commented Oct 22, 2019 via email

Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qw4990 qw4990 added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 22, 2019
Copy link
Contributor

@Reminiscent Reminiscent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Reminiscent Reminiscent added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Oct 22, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 22, 2019

Your auto merge job has been accepted, waiting for 12841

@sre-bot
Copy link
Contributor

sre-bot commented Oct 22, 2019

/run-all-tests

@sre-bot sre-bot merged commit 076503a into pingcap:master Oct 22, 2019
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/expression contribution This PR is from a community contributor. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants