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

Optimize access to InnoDB page header fields

Details

    Description

      For accessing InnoDB page header fields, we should prefer direct access via uint16_t*, uint32_t*, uint64_t* when the fields are known to be aligned. We should also avoid unnecessary byte order conversions when they do not matter (say, writing 0 or ~0, or comparing to those values).

      This could slightly improve performance.

      It looks like small memcpy(), memset(), memcmp() can be optimized into simple instructions. It is not only IA-32 and AMD64 that support unaligned access; also POWER8 and Aarch64 seem to do that.

      Attachments

        Activity

          marko Marko Mäkelä created issue -
          marko Marko Mäkelä made changes -
          Field Original Value New Value
          issue.field.resolutiondate 2019-11-26 08:42:16.0 2019-11-26 08:42:16.914
          marko Marko Mäkelä made changes -
          Fix Version/s 10.5.0 [ 23709 ]
          Fix Version/s 10.5 [ 23123 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          marko Marko Mäkelä made changes -
          Fix Version/s 10.5.1 [ 24029 ]
          Fix Version/s 10.5.0 [ 23709 ]
          julien.fritsch Julien Fritsch made changes -
          Fixing Priority 250
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 101385 ] MariaDB v4 [ 134144 ]
          rob.schwyzer@mariadb.com Rob Schwyzer (Inactive) made changes -
          rob.schwyzer@mariadb.com Rob Schwyzer (Inactive) made changes -

          People

            marko Marko Mäkelä
            marko Marko Mäkelä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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