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

Performance Issue in QGraphicsScene's _q_polishItems()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.6.1
    • 4.6.0
    • Widgets: GraphicsView
    • None
    • openSuse 11.1 with Qt 4.6 and qt-git-master-branch.
    • 6026436f0de6020252410c021e0745a22599b159

      After adding >30000 Items to a GraphicsScene the first draw takes very long time.
      That's because it first calls _q_polishItems(), which removes the Itemes one-by-one from the QSet of unpolished GraphicsItems.
      (The actual slow instruction seems to be "it = unpolishedItems.begin();". Tested with callgrind).

      A suggested fix is attached...

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

            menard Alexis Menard (closed Nokia identity) (Inactive)
            martinpley Martin Pley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes