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

Optimization opportunity in Qt Quick text handling

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.4.0 Beta3
    • Quick: SceneGraph
    • None
    • All

      Qt Quick uses QGlyphRun::setRawData() to avoid copying data, but then it accesses the data using glyphIndexes() and positions() later. This causes a copy every time those are used. There is no efficient way to use setRawData() without also accessing internals.

      As an optimization, we could add a low-level way to access the internal pointers directly (getRawData()?) and use this instead.

      In addition, we should consider improving QGlyphRun::glyphIndexes() and friends so that it actually keeps the copy of the array the first time it's copied and then reuses this later.

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

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes