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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1
    • Fix Version/s: 10.1
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                svoj Sergey Vojtovich
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: