Skip to content
/ server Public

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.

pos2, char_length2))
return 1;
return 1;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't touch this line. It's not relevant to this change. We'll replace TAB to spaces in a separate change eventually.

key, char_length_key))
return 1;
return 1;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't touch this line.

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.

len2= uint2korr(pos2);
pos1+= 2;
pos2+= 2;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a comment here:
/*
We're not using my_ci_strnncollsp_nchars() here for NOPAD collations
because some virtual implementations do not work correctly. For details see:
https://jira.mariadb.org/browse/MDEV-38712
*/

@MohamedM216 MohamedM216 requested a review from abarkov February 12, 2026 09:21
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