Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21543

improve hp_rec_key_cmp string comparison

    XMLWordPrintable

Details

    Description

      hp_rec_key_cmp performs two string comparison in two phases: while the first one it searches
      an octet length of comparing strings and while the second one it does comparison using strnncollsp.
      The main issue is that hp_rec_key_cmp decodes all the comparing strings completely whereas they could differ starting just from their first characters. Besides the fact that this issue has no performance impact in case of fixed length encoding, UTF-8 performance is suffering a lot.

      Attachments

        Issue Links

          Activity

            People

              gkodinov Georgi Kodinov
              georgykirichenko Georgy Kirichenko
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1d 0.75h
                  1d 0.75h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.