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

speedup collation/charset lookup

    XMLWordPrintable

Details

    Description

      currently a collation lookup (collation name to collation id) is done (in get_collation_number_internal()) by linearly scanning the array of collations.

      This used to work fine, but the number of collations is constantly growing (MDEV-27009, MDEV-20912) and the linear search is starting to become noticeable.

      It would be a good idea to change it to a hash lookup.

      Same can be done for character sets, even though the number of charsets didn't grow that much.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1d 5h 20m
                  1d 5h 20m

                  Git Integration

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