-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: make builtinCastIntAsInt
support vectorized evaluation
#11826
Conversation
a29c115
to
911f3c9
Compare
Codecov Report
@@ Coverage Diff @@
## master #11826 +/- ##
================================================
- Coverage 81.3093% 81.2461% -0.0633%
================================================
Files 438 438
Lines 94566 94455 -111
================================================
- Hits 76891 76741 -150
- Misses 12208 12238 +30
- Partials 5467 5476 +9 |
bd3edd6
to
78b9b0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f9b4ee3
to
a14346c
Compare
/run-all-tests |
/run-common-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
/run-common-test |
/run-all-tests |
fd3767e
to
5c7178a
Compare
/run-all-tests |
fd66d70
to
408b85f
Compare
/run-common-test |
"github.com/pingcap/tidb/util/mock" | ||
) | ||
|
||
func BenchmarkCastIntAsInt(b *testing.B) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you post the benchmark code on the old cast implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to use https://godoc.org/golang.org/x/perf/cmd/benchstat and post the benchmark result in the pull request description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is implemented here (https://github.com/pingcap/tidb/pull/11826/files#diff-2967d2754f43b7d6318020f0953a69f3R38)
/run-all-tests |
e7e4b0a
to
237c4fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
What problem does this PR solve?
Implement vectorized evaluation for
builtinCastIntAsInt
.What is changed and how it works?
Here is the benchmark in my MAC, almost 95x faster than before:
Check List
Tests