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

QVarLengthArray should expand to less code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.9.9, 5.12.8, 5.13.2, 5.14.2, 5.15.0, 6.0.4, 6.1.3, 6.2.1
    • Fix Version/s: 6.3.0 Alpha, 6.3
    • Labels:
      None
    • Commits:
      7670db3146 (qt/qtbase/dev) 7670db3146 (qt/tqtc-qtbase/dev) 7670db3146 (qt/tqtc-qtbase/6.3)
    • Story Points:
      8
    • Sprint:
      Team 2 Foundation_Sprint 47, Team 2 Foundation_Sprint 48

      Description

      The full implementation of QVarLengthArray is templated on Prealloc. This makes two QVarLengthArrays of differing Prealloc completely independent types, and all functions are instantiated anew.

      The implementation should split off the Prealloc-dependent parts (the internal buffer and the Prealloc contant itself) from the rest, such that QVLA<T>s with different Preallocs don't generate duplicate executable code.

      The 6.0 is the only opportunity we have for this, until Qt 7.

        Attachments

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

          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:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: