8000 (trunk) PS-9647: MySQL Perf Improvements (deque) by kamil-holubicki · Pull Request #5642 · percona/percona-server · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

(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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

kamil-holubicki
Copy link
Contributor

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

Copy link
@github-actions github-actions bot left a 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(); }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ modernize-use-nodiscard ⚠️
function empty should be marked [[nodiscard]]

Suggested change
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(); }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ modernize-use-nodiscard ⚠️
function size should be marked [[nodiscard]]

Suggested change
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
@kamil-holubicki kamil-holubicki changed the title PS-9647: MySQL Perf Improvements (trunk) PS-9647: MySQL Perf Improvements (deque) Jun 25, 2025
Copy link
Collaborator
@percona-ysorokin percona-ysorokin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0