Skip to content

expression: implement vectorized evaluation for builtinLeastRealSig#12432

Merged
zz-jason merged 4 commits into
pingcap:masterfrom
PiotrNewt:vecexpr-func-LeastReal
Sep 28, 2019
Merged

expression: implement vectorized evaluation for builtinLeastRealSig#12432
zz-jason merged 4 commits into
pingcap:masterfrom
PiotrNewt:vecexpr-func-LeastReal

Conversation

@PiotrNewt
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Implement vectorized evaluation for builtinLeastRealSig, for issue #12105

What is changed and how it works?

  • Implement vectorized evaluation.

Here is the benchmark , almost 8x faster than before:

BenchmarkVectorizedBuiltinCompareFunc/builtinLeastRealSig-VecBuiltinFunc-4               	  244906	      4751 ns/op	       0 B/op	       0 allocs/op
BenchmarkVectorizedBuiltinCompareFunc/builtinLeastRealSig-NonVecBuiltinFunc-4            	   33703	     35600 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 27, 2019
@PiotrNewt PiotrNewt changed the title expression: implement vectorization for builtinLeastRealSig expression: implement vectorized evaluation for builtinLeastRealSig Sep 27, 2019
@qw4990 qw4990 requested review from SunRunAway and qw4990 and removed request for qw4990 September 27, 2019 05:53
@qw4990 qw4990 self-requested a review September 27, 2019 05:54
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

@qw4990
Copy link
Copy Markdown
Contributor

qw4990 commented Sep 27, 2019

/run-unit-test

@qw4990 qw4990 requested a review from zz-jason September 28, 2019 10:10
Copy link
Copy Markdown
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. labels Sep 28, 2019
@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Sep 28, 2019

/run-all-tests

@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Sep 28, 2019

/run-all-tests

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 28, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #12432   +/-   ##
===========================================
  Coverage   79.7153%   79.7153%           
===========================================
  Files           462        462           
  Lines        102447     102447           
===========================================
  Hits          81666      81666           
  Misses        14893      14893           
  Partials       5888       5888

@sre-bot
Copy link
Copy Markdown
Contributor

sre-bot commented Sep 28, 2019

@PiotrNewt merge failed.

@zz-jason zz-jason merged commit 6ad5e9f into pingcap:master Sep 28, 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.

4 participants