Skip to content
/ server Public

Comments

MDEV-21543: Speed up VARCHAR pad space handling in multibyte collations#4625

Merged
gkodinov merged 1 commit intoMariaDB:mainfrom
MohamedM216:fix-hp_rec_key_cmp/MDEV-21543-b2
Feb 19, 2026
Merged

MDEV-21543: Speed up VARCHAR pad space handling in multibyte collations#4625
gkodinov merged 1 commit intoMariaDB:mainfrom
MohamedM216:fix-hp_rec_key_cmp/MDEV-21543-b2

Conversation

@MohamedM216
Copy link
Contributor

Scoped partial optimization, for MDEV-21543, improving PAD SPACE collations for multibyte character sets, for HA_KEYTYPE_VARTEXT1 only, while keeping the old behavior for other cases until MDEV-38712 is resolved. For more info refer to this Zulip topic: #New Members > MDEV-21543 hp_rec_key_cmp suboptimal comparison

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Feb 9, 2026
@vuvova vuvova requested a review from abarkov February 10, 2026 18:06
Copy link
Contributor

@abarkov abarkov left a comment

Choose a reason for hiding this comment

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

The change looks good. Please only undo changes in non-relevant lines. Thanks.

Copy link
Contributor

@abarkov abarkov left a comment

Choose a reason for hiding this comment

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

Please also add a comment. Thanks.

@MohamedM216 MohamedM216 requested a review from abarkov February 12, 2026 09:21
Copy link
Contributor

@abarkov abarkov left a comment

Choose a reason for hiding this comment

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

The cleanup patch is OK. Can you please squash it with the main commit? Thanks.

Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

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

Thank you for working on this! As Alexander has requested, can you please squash all of your commits into a single one and put up a commit message that conforms to https://github.com/MariaDB/server/blob/main/CODING_STANDARDS.md ?

- Scoped partial optimization for MDEV-21543 improving
PAD SPACE collations for multibyte character sets in
HA_KEYTYPE_VARTEXT1.
- This keeps the old behavior for other cases until
MDEV-38712 is resolved.
- Benchmark: see zulip topic in the PR description
- Results:
- ~3.1% lower wall-clock time
- ~2.1% fewer CPU cycles
- ~0.5% fewer retired instructions
- ~0.7% fewer branch mispredictions
@MohamedM216 MohamedM216 force-pushed the fix-hp_rec_key_cmp/MDEV-21543-b2 branch from a1a9268 to 4042100 Compare February 19, 2026 12:54
Copy link
Contributor

@abarkov abarkov left a comment

Choose a reason for hiding this comment

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

The patch is OK to push. Thanks!

@MohamedM216
Copy link
Contributor Author

Great, thanks!

@gkodinov gkodinov enabled auto-merge (rebase) February 19, 2026 13:48
@gkodinov gkodinov disabled auto-merge February 19, 2026 13:53
@gkodinov gkodinov merged commit 637f8c4 into MariaDB:main Feb 19, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants