-
-
Notifications
You must be signed in to change notification settings - Fork 2k
MDEV-21543: Speed up VARCHAR pad space handling in multibyte collations #4625
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: main
Are you sure you want to change the base?
MDEV-21543: Speed up VARCHAR pad space handling in multibyte collations #4625
Conversation
abarkov
left a comment
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.
The change looks good. Please only undo changes in non-relevant lines. Thanks.
| pos2, char_length2)) | ||
| return 1; | ||
| return 1; | ||
| } |
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.
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; | ||
| } |
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.
Please don't touch this line.
abarkov
left a comment
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.
Please also add a comment. Thanks.
| len2= uint2korr(pos2); | ||
| pos1+= 2; | ||
| pos2+= 2; | ||
| } |
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.
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
*/
Scoped partial optimization, for MDEV-21543, improving PAD SPACE collations for multibyte character sets, for
HA_KEYTYPE_VARTEXT1only, 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