Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expression: implement vectorized evaluation for builtinJSONQuoteSig #12831

Merged
merged 2 commits into from
Oct 21, 2019

Conversation

js00070
Copy link
Contributor

@js00070 js00070 commented Oct 19, 2019

What problem does this PR solve?

implement vectorized evaluation for builtinJSONQuoteSig in #12104

What is changed and how it works?

about 20% faster

BenchmarkVectorizedBuiltinJSONFunc/builtinJSONQuoteSig-VecBuiltinFunc-12                   13716             87653 ns/op           12704 B/op       2382 allocs/op
BenchmarkVectorizedBuiltinJSONFunc/builtinJSONQuoteSig-NonVecBuiltinFunc-12                 9867            104861 ns/op           12704 B/op       2382 allocs/op

Check List

Tests

  • Unit test

@js00070 js00070 requested a review from a team as a code owner October 19, 2019 18:02
@sre-bot sre-bot added the contribution This PR is from a community contributor. label Oct 19, 2019
@ghost ghost requested review from wshwsh12 and removed request for a team October 19, 2019 18:02
Copy link
Contributor

@wshwsh12 wshwsh12 left a comment

Choose a reason for hiding this comment

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

LGTM

@wshwsh12 wshwsh12 requested a review from qw4990 October 20, 2019 06:07
@wshwsh12 wshwsh12 added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 20, 2019
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 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 21, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 21, 2019

Your auto merge job has been accepted, waiting for 12780, 12830

@sre-bot
Copy link
Contributor

sre-bot commented Oct 21, 2019

/run-all-tests

@codecov
Copy link

codecov bot commented Oct 21, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #12831   +/-   ##
===========================================
  Coverage   80.0028%   80.0028%           
===========================================
  Files           465        465           
  Lines        106590     106590           
===========================================
  Hits          85275      85275           
  Misses        14940      14940           
  Partials       6375       6375

@sre-bot sre-bot merged commit 87e68b0 into pingcap:master Oct 21, 2019
@js00070 js00070 deleted the JsonQuote branch November 7, 2019 11:08
@@ -42,7 +42,9 @@ var vecBuiltinJSONCases = map[string][]vecExprBenchCase{
ast.JSONRemove: {},
ast.JSONMerge: {},
ast.JSONInsert: {},
ast.JSONQuote: {},
ast.JSONQuote: {
{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETJson}},
Copy link
Contributor

@Deardrops Deardrops Nov 22, 2019

Choose a reason for hiding this comment

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

There is a Bug, fixed in #13688

{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETString}},

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.

6 participants