-
Notifications
You must be signed in to change notification settings - Fork 488
(trunk) PS-9647: MySQL Perf Improvements (deque) #5642
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
base: trunk
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.
Clang-Tidy
found issue(s) with the introduced code (1/1)
assert_not_invalidated(); | ||
return Iterator{m_deque, m_physical_idx + offset}; | ||
} | ||
bool empty() const { return list_.empty(); } |
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.
function empty
should be marked [[nodiscard]]
bool empty() const { return list_.empty(); } | |
[[nodiscard]] bool empty() const { return list_.empty(); } |
assert_not_invalidated(); | ||
return Iterator{m_deque, m_physical_idx - offset}; | ||
} | ||
size_t size() const { return list_.size(); } |
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.
function size
should be marked [[nodiscard]]
size_t size() const { return list_.size(); } | |
[[nodiscard]] size_t size() const { return list_.size(); } |
https://perconadev.atlassian.net/browse/PS-9647 This patch uses list instead of deque for memory efficiency reasons, primarily to optimize operations like bulk insert
163aac6
to
420e411
Compare
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
https://perconadev.atlassian.net/browse/PS-9647
This patch uses list instead of deque for memory efficiency reasons, primarily to optimize operations like bulk insert
Cherry pick of 7509e14