-
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
statistics: reduce small obj alloc for PreCalculateScalar #52623
statistics: reduce small obj alloc for PreCalculateScalar #52623
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52623 +/- ##
================================================
+ Coverage 72.3481% 74.4128% +2.0646%
================================================
Files 1470 1471 +1
Lines 427158 428133 +975
================================================
+ Hits 309041 318586 +9545
+ Misses 98845 89714 -9131
- Partials 19272 19833 +561
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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'm not very familiar with these structures.
Is it safe to reuse? Are there other places that use it in this way?
If it is, please add some comments to note that we trying to rescue it to save memory here.
You can jump into the func |
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.
/hold
Please add some comments to it.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawkingrei, hi-rustin 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:
|
/unhold |
/cherrypick release-8.1 |
@winoros: new pull request created to branch 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 ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #52343
Problem Summary:
We don't need to re-alloc anything since we only read from the chunk, no modification after reading it.
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.