[layoutng] Create the fragment's children vector with the exact capacity
This will let us avoid an allocation in many cases and is never worse than the previous code, and saves heap memory. Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I0e63a318d495747c322224b70175954a889e4ea8 Reviewed-on: https://chromium-review.googlesource.com/c/1289082Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#600922}
Showing
Please register or sign in to comment