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

      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.

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

            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

              Created:
              Updated:

                There are no open Gerrit changes