[FragmentItem] Change to the array of |NGFragmentItem|
This patch changes the array of |scoped_refptr<NGFragmentItem>| to the array of |NGFragmentItem|. This change: * Improves memory usages. * Improves memory locality when traversing items. * Slows copying |NGFragmentItem|. Pinpoint results show the memory improvement: https://pinpoint-dot-chromeperf.appspot.com/job/15aa024e120000 but layout/paint look almost neutral, less than originally expected unfortunately; some tests are faster but tests that leverage simplified layout a lot are slower: win10 blink_perf.layout https://pinpoint-dot-chromeperf.appspot.com/job/165dcc45120000 linux blink_perf.layout https://pinpoint-dot-chromeperf.appspot.com/job/14b5417a120000 linux blink_perf.paint https://pinpoint-dot-chromeperf.appspot.com/job/143fc65a120000 Bug: 982194 Change-Id: I86b8a7e5eff4ad211da2cdaed065eacbec316469 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208806 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#774510}
Showing
Please register or sign in to comment