[LayoutNG] Reduce memory allocations in NGInlineNode::ShapeText
32 can avoid most of memory allocations, by consuming 512 bytes on stack ((4+4+8) * 32) on 64 bits. Most major sites are up to 8 or so, such as Google SRP, facebook, twitter, MDN, youtube, etc. Wikipedia is up to 21. Change-Id: I7f06f0ce01b5d2960becf99e0b453d92723e5253 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821501 Auto-Submit: Koji Ishii <kojii@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#699655}
Showing
Please register or sign in to comment