Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
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
- depends on
-
QTBUG-114208 QString: add missing STL-style assign(It, It) with value_type_t<It> in {char, char8_t} (i.e. UTF-8)
-
- Closed
-