-
Couldn't load subscription status.
- Fork 6k
*: extract column into map in the constant propagation #64121
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #64121 +/- ##
================================================
+ Coverage 72.7343% 73.3994% +0.6651%
================================================
Files 1856 1857 +1
Lines 501939 502050 +111
================================================
+ Hits 365082 368502 +3420
+ Misses 114662 111504 -3158
+ Partials 22195 22044 -151
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
| s.insertCols(mp) | ||
| clear(mp) | ||
| } | ||
| PutUniqueIDToColumnMap(mp) |
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.
maybe use defer to put mp back?
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.
The lifecycle here is clear, and the optimization steps are very time-consuming. So we should put it into the pool immediately after it has been used up.
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.
I refactor the code to use defer
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
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: windtalker The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/cc @henrybw |
|
@mjonss: GitHub didn't allow me to request PR reviews from the following users: henrybw. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
53a83bf to
661b9a8
Compare
|
/retest |
|
/retest |
1 similar comment
|
/retest |
|
/hold |
What problem does this PR solve?
Issue Number: close #64128
Problem Summary:
What changed and how does it work?
In the solve of constant propagation, the slices of ExtractColumn will be converted into a map and deduplicated. Therefore, directly converting them into a map is better than converting them into slices.
Check List
Tests
before
after
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.