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

investigate the performance effects of -O2 vs -O3 , possibly -O1 for gcc

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • N/A
    • Compiling
    • None

    Description

      To avoid gcc bugs in the production software (such as MDEV-19709), it could be better to
      compile with less aggressive optimization.

      Some people state that -O2 is faster than -O3, due to more compact code (less inlining or loop unrolling) and as result less cache misses . See https://stackoverflow.com/a/19985801/547065 for example.

      The task is about benchmarking, and giving recommendations. From the quality standpoint, we can assume that -O2 would have less bug, and it is better tested, since it is the optimization used most often for production software.
      From performance standpoint, the right -O level needs to be measured.

      Attachments

        Issue Links

          Activity

            People

              axel Axel Schwenke
              wlad Vladislav Vaintroub
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.