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

Port QObject::setObjectName() to QAnyStringView

XMLWordPrintable

    • 8
    • 9da4c6bfb7 (qt/qtbase/dev) 9da4c6bfb7 (qt/tqtc-qtbase/dev)
    • Team Two Foundation Sprint 52, Team B Foundation Sprint 53

      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).

        For Gerrit Dashboard: QTBUG-101393
        # Subject Branch Project Status CR V

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes