Bug 207503 - [WebCore] Shrink Vectors passed to SharedBuffer
Summary: [WebCore] Shrink Vectors passed to SharedBuffer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Basuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-10 13:38 PST by Basuke Suzuki
Modified: 2020-02-10 15:18 PST (History)
5 users (show)

See Also:


Attachments
PATCH (1.67 KB, patch)
2020-02-10 13:45 PST, Basuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Basuke Suzuki 2020-02-10 13:38:08 PST
SharedBuffer::DataSegment is const data and never change is size and content after creation. Shrink the passed vector before assigning to member variable to save space.
Comment 1 Basuke Suzuki 2020-02-10 13:45:42 PST
Created attachment 390288 [details]
PATCH
Comment 2 Yusuke Suzuki 2020-02-10 14:24:17 PST
Comment on attachment 390288 [details]
PATCH

r=me
Comment 3 WebKit Commit Bot 2020-02-10 15:17:22 PST
Comment on attachment 390288 [details]
PATCH

Clearing flags on attachment: 390288

Committed r256223: <https://trac.webkit.org/changeset/256223>
Comment 4 WebKit Commit Bot 2020-02-10 15:17:24 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2020-02-10 15:18:14 PST
<rdar://problem/59328015>