-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
sql: WIP on changing SupportsVectorized check #55948
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This prototype shows the performance difference of -4.1%:
I added some pooling of objects in the vectorized path, and now we're down to -3.35%:
|
yuzefovich
force-pushed
the
vec-light-check
branch
from
October 25, 2020 02:27
bd5c290
to
55e4db5
Compare
yuzefovich
force-pushed
the
vec-light-check
branch
2 times, most recently
from
October 28, 2020 18:26
bf545c8
to
c8dea73
Compare
This commit pools the allocations of some objects that are created on the simplest read path in the vectorized engine - when we have a ColBatchScan connected with a Materializer. The benchmarks of KV95 workload showed that this improves the throughput by 0.5% or so. Release note: None
Previously, in order to determine whether we supported the vectorization of a flow, we would run a pretty expensive SupportsVectorized check that performs a "fake flow setup" by actually creating all of the components without running them. This has non-negligible performance impact on KV-like workloads, so it has been optimized away in favor of a more light-weight check that simply inspects the processor specs for the fact whether the processor core can be vectorized (either natively or by wrapping row-execution processor). All processor cores have been audited to separate out all that we currently cannot wrap (usually because they don't implement RowSource interface). Note that if a new processor core is introduced and `canWrap` check is not updated, we defensively assume that it cannot be wrapped and emit an assertion failed error that - hopefully - should surface the fact that we need to update the check. Release note: None
yuzefovich
force-pushed
the
vec-light-check
branch
from
October 28, 2020 20:00
c8dea73
to
4dc66c7
Compare
Alright, the build is green, and this PR is subsumed by #55713. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To be filled.