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

QWidget::setParent calls q_evaluateRhiRecursive which is slow

    XMLWordPrintable

Details

    • Linux/X11
    • 244daf4cfc (qt/qtbase/dev) 244daf4cfc (qt/tqtc-qtbase/dev) d58ac206a8 (qt/qtbase/6.4) d58ac206a8 (qt/tqtc-qtbase/6.4), 8c0b657c9 (dev), d397fee62 (6.5)

    Description

      Hello,
      I have a case where I create a relatively large amount of widgets (1000-ish). This used to be trivially very fast but since recent Qt I observed some performance degradation, leading to multiple seconds of wait when creating my widget.

      When profiling, it seems to call q_evaluateRhiRecursive on every reparenting call, which seems to be a performance bottleneck: here is a trace I recorded with Hotspot ; the huge majority of the time is spent in these calls:

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes