-
Notifications
You must be signed in to change notification settings - Fork 286
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
optimize: optimize the speed of buildLockKey #714
base: master
Are you sure you want to change the base?
Conversation
把单元测试也完善下 |
好的 |
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.
解决下 Quality Gate的重复代码问题
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
Quality Gate passedIssues Measures |
What this PR does:
optimize the speed of buildLockKey
K: The number of primary keys
M: The number of columns
N: The number of rows
Original time complexity:$O(N \times M \times K)$ $O(N \times K)$
Optimized time complexity:
Which issue(s) this PR fixes:
Fixes #696
Special notes for your reviewer:
It has been tested locally and can pass the corresponding unit test.
Does this PR introduce a user-facing change?: