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

Field::char_length() takes 0.15% in OLTP RO

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.1(EOL)
    • 10.2(EOL)
    • None
    • None

    Description

      Data comes from Sandy Bridge system running sysbench OLTP RO in 1 thread against 1 table.

      Call graphs:

      -   0.15%  mysqld  mysqld
         - Field::char_length()
            + 73.43% Field_string::sort_string(unsigned char*, unsigned int)
            + 16.71% Item_field::set_field(Field*)
            + 4.95% make_sortkey(Sort_param*, unsigned char*, unsigned char*)
            + 4.91% Item_field::fix_fields(THD*, Item**)

      This is virtual method which can't be inlined. Most time spent for function call convention. Check if we can revoke it's virtual status.

      NB: Field::charset() which is used by this method is virtual too.

      Attachments

        Activity

          People

            bar Alexander Barkov
            svoj Sergey Vojtovich
            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.