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

Windows, compiling : enable /d2OptimizeHugeFunctions for MySQLParse()

    XMLWordPrintable

Details

    Description

      MSVC massively scales down on optimization depending of the function size.
      bison generated MySQLParse() is considered "huge" by the compiler . I verified this by adding /we4883 flag to compiler options. That makes making (usually inactive) warning "function size prevents optimization" an error.

      There is a switch that allows optimizations also for such functions, /d2OptimizeHugeFunctions.
      (docs https://support.microsoft.com/en-nz/help/3207317/visual-c-optimizer-fixes-for-visual-studio-2015-update-3)

      MySQL 8.0 is using it, according to
      https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-13.html

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.