Bug 186782

Summary: Investigate StringImpl memory use
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2018-06-18 11:48:57 PDT
The data in bug 186422 show that the StringImpl heap uses about 20MB of dirty memory, but only contains about 6MB of data, so there's a potential memory saving here of up to 14MB.

                                                        VIRTUAL   RESIDENT      DIRTY    SWAPPED ALLOCATION      BYTES DIRTY+SWAP          REGION
MALLOC ZONE                                                SIZE       SIZE       SIZE       SIZE      COUNT  ALLOCATED  FRAG SIZE  % FRAG   COUNT
===========                                             =======  =========  =========  =========  =========  =========  =========  ======  ======
WebKit StringImpl_0x10b4c0000                            100.0M      23.2M      19.9M         0K      74493      6166K      13.9M     70%      27
Comment 1 Radar WebKit Bug Importer 2018-06-18 11:49:22 PDT
<rdar://problem/41218701>