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

Investigate making QDomNodeList::It bidi-only

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.9.0 Beta3, 6.9.0, 6.10.0 FF
    • 6.9.0 Beta1
    • XML: DOM
    • None
    • 5
    • e4bcd9f1c (dev), 1d067db12 (6.9), 860998279 (dev), 6869341dc (6.9)
    • Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125

      QDomNodeList currently implements an indexed iterator, basically calling item(n). This allows it to be random-access, but requires the QDomNodeList to linearize itself (maybeCreateList(), noexceptLength()), which takes time and extra memory.

      An alternative is to use a sentinel end-iterator and have the QDomNodeList::const_iterator iterate the underlying data structure (a tree) directly, as per QDomNodeListPrivate::forEachNode(). Then this would be more akin to firstChild()/nextSibling() iteration, which does not require linearization of the list.

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

            matthias_rauter Matthias Rauter
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes