-
Notifications
You must be signed in to change notification settings - Fork 721
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
core/region: use a separate tree to check for overlaps in the subtree #8185
Conversation
Signed-off-by: JmPotato <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: JmPotato <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8185 +/- ##
==========================================
- Coverage 77.40% 77.32% -0.08%
==========================================
Files 471 471
Lines 61387 61354 -33
==========================================
- Hits 47516 47443 -73
- Misses 10309 10339 +30
- Partials 3562 3572 +10
Flags with carried forward coverage won't be shown. Click here to find out more. |
// t3: thread-B: update subtree | ||
// t4: thread-A: update region subtree | ||
// to keep region tree consistent with subtree, we need to drop this update. | ||
if tree, ok := r.subRegions[region.GetID()]; ok { |
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.
Should we use the item or something else instead of a tree?
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.
Since there is no need to perform overlap checks on subtrees anymore, it is feasible to abandon the tree structure and adopt other simpler data structures. However, I prefer to carry out this modification separately after merging this PR due to the potentially significant changes.
BTW, how much extra memory will it cost? |
You can check the benchmark results in the PR description. It does not cause additional memory usage; on the contrary, it significantly reduces memory usage compared to the previous version. |
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
/merge |
@JmPotato: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: aef4a7c
|
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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 #8136, ref #7897.
What is changed and how does it work?
Check List
Tests
Release note