[Webkit-unassigned] [Bug 28876] New: [Qt] reduce peak memory consumption of text decoding.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 1 09:00:30 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28876

           Summary: [Qt] reduce peak memory consumption of text decoding.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: S60 3rd edition
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yongjun.zhang at nokia.com


Currently, Qt text codec takes the whole input string and decode it into
unicode QString, and QString is then converted to WebCore::String for further
processing.

QString usually takes twice as much memory as the input string, and copying
QString to WebCore::String needs the same amount memory.  As a result, the peak
memory consumption of decoding is 5 times as the input string (1x for original
input + 2x for QString + 2x for WebCore::String).  That means, for 1MB input
text, at least 5 MB RAM is needed to decode it into unicode.

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



More information about the webkit-unassigned mailing list