-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Performance](opt) opt the order by performance in permutation #39023
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
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.
clang-tidy made some suggestions
|
|
||
| #pragma once | ||
|
|
||
| #include <glog/logging.h> |
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.
warning: 'glog/logging.h' file not found [clang-diagnostic-error]
#include <glog/logging.h>
^| std::partial_sort(res.begin(), sort_end, res.end(), | ||
| [this](size_t a, size_t b) { return data[a] < data[b]; }); | ||
| } else { | ||
| if (reverse) |
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.
warning: statement should be inside braces [readability-braces-around-statements]
| if (reverse) | |
| if (reverse) { |
be/src/vec/columns/column_decimal.h:284:
- else
+ } else| if (reverse) | ||
| pdqsort(res.begin(), res.end(), | ||
| [this](size_t a, size_t b) { return data[a] > data[b]; }); | ||
| else |
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.
warning: statement should be inside braces [readability-braces-around-statements]
| else | |
| else { |
be/src/vec/columns/column_decimal.h:286:
- [this](size_t a, size_t b) { return data[a] < data[b]; });
+ [this](size_t a, size_t b) { return data[a] < data[b]; });
+ }| limit = 0; | ||
| } | ||
| // std::partial_sort need limit << s can get performance benefit | ||
| if (limit > (s / 8.0)) limit = 0; |
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.
warning: statement should be inside braces [readability-braces-around-statements]
| if (limit > (s / 8.0)) limit = 0; | |
| if (limit > (s / 8.0)) { limit = 0; | |
| } |
|
|
||
| if (limit >= s) limit = 0; | ||
| // std::partial_sort need limit << s can get performance benefit | ||
| if (limit > (s / 8.0)) limit = 0; |
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.
warning: statement should be inside braces [readability-braces-around-statements]
| if (limit > (s / 8.0)) limit = 0; | |
| if (limit > (s / 8.0)) { limit = 0; | |
| } |
Proposed changes
cherry pick #38985