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
*: use generic to improve btree performance #35492
Conversation
[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. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/95695651282a8d74c9e0c25078bdb80bdcf434b5 |
/run-check_dev |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 88cc1a12a0480203559f3619e7b548d6fc488ca0
|
/hold it meets the bug from the linter. so we wait for bug fixed. |
@@ -677,7 +681,7 @@ func (lp *ForListPruning) buildListColumnsPruner(ctx sessionctx.Context, tblInfo | |||
ExprCol: columns[idx], | |||
valueTp: &colInfo.FieldType, | |||
valueMap: make(map[string]ListPartitionLocation), | |||
sorted: btree.New(btreeDegree), | |||
sorted: btree.NewG[*btreeListColumnItem](btreeDegree, lessBtreeListColumnItem), |
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.
My linter told me that type argument [*btreeListColumnItem]
is unnecessary.
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.
In the go1.18, Many linter has problems when dealing with generic.
/unhold |
/hold @hawkingrei check_dev
|
/hold |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5a8e80f022fcce9efb632d08aeb5a9f086a84114
|
/run-all-tests |
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 9569565
|
/hold |
/unhold |
TiDB MergeCI notify✅ Well Done! New fixed [1] after this pr merged.
|
Signed-off-by: Weizhen Wang wangweizhen@pingcap.com
What problem does this PR solve?
Issue Number: close #34248
Problem Summary:
What is changed and how it works?
Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.