Changeset 233728 in webkit


Ignore:
Timestamp:
Jul 11, 2018 6:30:14 AM (6 years ago)
Author:
Alan Bujtas
Message:

SimpleLineLayout::FlowContents wastes 54KB of Vector capacity on nytimes.com
https://bugs.webkit.org/show_bug.cgi?id=186709
<rdar://problem/41173793>

Reviewed by Simon Fraser.

The size of the m_segments vector in SimpleLineLayoutFlowContents is alway pre-computed and don't change after the initial append.

Not testable.

  • rendering/SimpleLineLayoutFlowContents.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r233720 r233728  
     12018-07-11  Zalan Bujtas  <zalan@apple.com>
     2
     3        SimpleLineLayout::FlowContents wastes 54KB of Vector capacity on nytimes.com
     4        https://bugs.webkit.org/show_bug.cgi?id=186709
     5        <rdar://problem/41173793>
     6
     7        Reviewed by Simon Fraser.
     8
     9        The size of the m_segments vector in SimpleLineLayoutFlowContents is alway pre-computed and don't change after the initial append. 
     10
     11        Not testable.
     12
     13        * rendering/SimpleLineLayoutFlowContents.h:
     14
    1152018-07-10  Youenn Fablet  <youenn@apple.com>
    216
  • trunk/Source/WebCore/rendering/SimpleLineLayoutFlowContents.h

    r233682 r233728  
    5959private:
    6060    unsigned segmentIndexForRunSlow(unsigned start, unsigned end) const;
    61     const Vector<Segment, 8> m_segments;
     61    const Vector<Segment> m_segments;
    6262    mutable unsigned m_lastSegmentIndex { 0 };
    6363};
Note: See TracChangeset for help on using the changeset viewer.