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

page_cur_search_with_match() could avoid rec_get_offsets()

    XMLWordPrintable

Details

    Description

      While working on MDEV-35049, I noticed that the function page_cur_search_with_match() is allocating memory for invoking rec_get_offsets(). Its callers typically allocate this memory as well, and they would also invoke rec_get_offsets() again on the returned record. This could be optimized in some way.

      A possible fix might be to implement a comparison function that would compute the addresses of fields of records on the fly.

      Attachments

        Issue Links

          Activity

            People

              mleich Matthias Leich
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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