[MDEV-23301] my_tosort_unicode: unnecessary max_char check while utf8-mb3 processing Created: 2020-07-27 Updated: 2021-05-11 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Georgy Kirichenko | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | performance, unicode | ||
| Description |
|
my_tosort_unicode function checks an input character against uni_plane max char value here (strings/ctype-utf8.c):
But utf8-mb3 encodes only 2-bytes and there is no uniplanes with max char less than 65535 so such check is not required. Getting rid of this results in a small performance gain (tested on amd64 and aarch64 with sysbench ro test) |