Skip to content

expression: implement vectorized evaluation for builtinLogicXorSig#12430

Merged
sre-bot merged 3 commits into
pingcap:masterfrom
k-ye:vec
Sep 27, 2019
Merged

expression: implement vectorized evaluation for builtinLogicXorSig#12430
sre-bot merged 3 commits into
pingcap:masterfrom
k-ye:vec

Conversation

@k-ye
Copy link
Copy Markdown
Contributor

@k-ye k-ye commented Sep 26, 2019

What problem does this PR solve?

Implement vectorized evaluation for builtinLogicXorSig for #12103.

What is changed and how it works?

According to benchmark, the vectorized operation is about 6 times faster than before:

BenchmarkVectorizedBuiltinOpFunc/builtinLogicXorSig-VecBuiltinFunc-4         	  300000	      5452 ns/op	       0 B/op	       0 allocs/op
BenchmarkVectorizedBuiltinOpFunc/builtinLogicXorSig-NonVecBuiltinFunc-4      	   50000	     31846 ns/op	       0 B/op	       0 allocs/op

Check List

Tests

  • Unit test

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Sep 26, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 26, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #12430   +/-   ##
===========================================
  Coverage   79.7369%   79.7369%           
===========================================
  Files           462        462           
  Lines        102324     102324           
===========================================
  Hits          81590      81590           
  Misses        14845      14845           
  Partials       5889       5889

Comment thread expression/builtin_op_vec.go Outdated
Copy link
Copy Markdown
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

Copy link
Copy Markdown
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway SunRunAway added the status/can-merge Indicates a PR has been approved by a committer. label Sep 27, 2019
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Sep 27, 2019

/run-all-tests

@sre-bot sre-bot merged commit 8379a1c into pingcap:master Sep 27, 2019
@k-ye k-ye deleted the vec branch September 27, 2019 08:55
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants