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

Investigate making QDomNodeList::It bidi-only

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes