[FragmentItem] Avoid creating NGPhysicalTextFragment
This patch creates |NGFragmentItem| without creating intermediate |NGPhysicalTextFragment|. Before this patch: |NGInlineItemResult| -> |NGPhysicalTextFragment| -> |NGFragmentItem| With this patch: |NGInlineItemResult| -> |NGFragmentItem| This patch improves benchmarks: * chapter-reflow by 4% * hindi-line-layout by 12% * line-layout by 4% https://pinpoint-dot-chromeperf.appspot.com/job/1670dc91e20000 Currently, these tests are slower than |NGPaintFragment|. https://pinpoint-dot-chromeperf.appspot.com/job/10ea2589e20000 This patch also improves the currently shipping code path by up to 5.8%. This is an unexpected surprise, probably because the change improves code locality. https://pinpoint-dot-chromeperf.appspot.com/job/14943f93e20000 Bug: 982194 Change-Id: I6ac7e8a9105ea05d3edee3048b3c8715baa07c5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2152063 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#760418}
Showing
Please register or sign in to comment