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

QQuickTextNode carries high fixed memory cost

    XMLWordPrintable

Details

    • 40206588f941ad8eddf1235f0845aec43213c897

    Description

      m_currentLineTree in QQuickTextNodeEngine is close to 32K in size. This adds significant fixed overhead when there are a large number of Text elements.

      For example, massif reports 50MB of heap usage for the following example:

      import QtQuick 2.0
      
      Grid {
          width: 400; height: 400
          rows: 40; columns: 40
          Repeater {
              model: rows*columns
              delegate: Text { width: 10; height: 10; text: "a" }
          }
      }
      

      Attachments

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

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes