Skip to content

(trunk) PS-9647: MySQL Perf Improvements (deque)#5642

Merged
inikep merged 1 commit intopercona:trunkfrom
kamil-holubicki:PS-9647-deque-trunk
Jul 28, 2025
Merged

(trunk) PS-9647: MySQL Perf Improvements (deque)#5642
inikep merged 1 commit intopercona:trunkfrom
kamil-holubicki:PS-9647-deque-trunk

Conversation

@kamil-holubicki
Copy link
Copy Markdown
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
Copy Markdown

@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(); }
Copy link
Copy Markdown

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(); }
Copy link
Copy Markdown

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
Copy Markdown
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

@inikep inikep merged commit e629dbb into percona:trunk Jul 28, 2025
19 checks passed
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.

3 participants