[Webkit-unassigned] [Bug 186747] New: Reduce HashTable capacity wastage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 16 17:33:22 PDT 2018


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

            Bug ID: 186747
           Summary: Reduce HashTable capacity wastage
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

Using the patch in bug 186698 we know that there is significant wastage in HashTable capacity. Wastage on some pages:

nytimes.com:     7MB
cnn.com:        10MB
theverge.com:    4MB

HashMap<> doesn't have shrink() like Vector does. It looks like we could expose a rehash() which will halve the table size, but only if less than 50% of table capacity is used (?).

Maybe the policy should be that we don't store large objects in HashMaps, and store pointers instead?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180617/5f61dcd5/attachment.html>


More information about the webkit-unassigned mailing list