[Webkit-unassigned] [Bug 65696] New: 7Mb of text takes 450Mb of heap to render

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 4 09:35:13 PDT 2011


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

           Summary: 7Mb of text takes 450Mb of heap to render
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pfeldman at chromium.org
                CC: hyatt at apple.com, mitz at webkit.org, rniwa at webkit.org,
                    jamesr at chromium.org


Attached snippet generates 1M lines of text in chunks 50 lines each (<10Mb of data in total). With pretty much nothing in the JS heap, resulting tab takes ~450Mb of heap.
Detaching content does not release much memory, repeating the procedure does not go beyond 450Mb though.

Sounds like allocating InlineBox takes all the space. I trimmed one bit from the m_expansion to fix alignment (11 -> 10) and it saved ~10% of heap (450->410). Attaching the pprof picture taken after the change.

-- 
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