Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101393

Port QObject::setObjectName() to QAnyStringView

    XMLWordPrintable

    Details

    • Epic Link:
    • Story Points:
      8
    • Commits:
      9da4c6bfb7 (qt/qtbase/dev) 9da4c6bfb7 (qt/tqtc-qtbase/dev)
    • Sprint:
      Team Two Foundation Sprint 52, Team B Foundation Sprint 53

      Description

      QObject::setObjectName() is typically called with a literal string. This currently means that a temporary QString is created and destroyed for each call of the function, of which there can be as many as one per QObject object. By porting the function to QAnyStringView, we can avoid said temporary QString, and vary the storage independently from the interface type (e.g., the objectName may be stored in a simple malloc'ed buffer, or a u16string (though it's SSO buffer is rather small) or QVLA).

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mmutz Marc Mutz
            Reporter:
            mmutz Marc Mutz
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes