[Webkit-unassigned] [Bug 24463] New: Do not detach/copy QString twice in WebCore::qstring

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 9 09:17:18 PDT 2009


           Summary: Do not detach/copy QString twice in WebCore::qstring
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: treat at kde.org

Currently, WebCore::qstring is detaching and copying twice for every single
TextRun that is processed and drawn.  This is a very expensive operation and
profiling suggests this method is one of the top ten most expensive operations
in all of QtWebKit.  The patch attached minimizes the QString copying/detaching
to only those cases where it is necessary.

Even with this change this method is still a very expensive operation since
almost all TextRuns contain a character that needs special handling by the
QTextEngine.  A forthcoming patch will address this too, but it requires an
addition to Qt's API.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list