commit | e59f9a1bcb78898b0d5c966e7f5acd9e51df11a8 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Thu Apr 24 21:51:27 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 24 21:51:27 2025 |
tree | d07d0185367cd3fa5dc553dfce699dd6403076ef | |
parent | 10c3ba2cf972d781e5ab5e9748c24116a9d938c3 [diff] |
[line-breaker] Early return when the whole item can fit This patch adds an early return code path to `ShapingLineBreaker` when it's obvious that the whole item can fit. By returning early, we can skip `EnsurePositionData()`, which is one of visible functions in the pprof. This code path hits more often for short text, while less for long text with little number of spans. In the Speedometer3, it hits ~40%. This change improves the Speedometer3 score by ~0.2%. To mitigate risks of breaking cases not covered in the current tests, the change is under a runtime flag. Bug: 413315840 Change-Id: Icdb3ad9deca7a449c41d74ee0876c6533a14f045 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6482970 Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Koji Ishii <kojii@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1451477}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.