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

QArrayDataPointer::assign(it, it): apply lessons learned in imlementing QString::assign(it, it) for UTF-8

    XMLWordPrintable

Details

    Description

      This is a follow-up task on QTBUG-114208.

      It looks like QString::assign_helper_char8() will end up with a superior structure than what we have currently have in QArrayDataPointer::assign(it, it) neƩ QList::assign(it, it). In particular, where the latter is falling back to a loop over emplace_back() when the capacity() is exhausted, the former will realloc(Grow), reset the output buffer pointers, and continue.

      Acceptance criteria:

      • Check under which conditions we can apply this optimization
      • and apply it in the code.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes