-
Notifications
You must be signed in to change notification settings - Fork 5.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
stmtctx: re-use the usedStatsInfo
for different statements in a single session
#59021
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
a1160da
to
69ff8ea
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #59021 +/- ##
================================================
+ Coverage 73.0236% 73.3665% +0.3429%
================================================
Files 1684 1684
Lines 465663 466988 +1325
================================================
+ Hits 340044 342613 +2569
+ Misses 104708 103434 -1274
- Partials 20911 20941 +30
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Very little progress, but having it is better than not. |
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 APPROVED This pull-request has been approved by: zimulala The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: close #59019
Problem Summary:
Previously, the data in
usedStatsInfo
is allocated for each statements. If we can re-use it across different statements in a session, it'll benefit the performance.What changed and how does it work?
Use
(*sync.Map).Clear()
to reset the map, and assign the existing map to the new stmtctx.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.