commit | 646dc75022563465395d002795c93259a05f8455 | [log] [tgz] |
---|---|---|
author | David Baron <dbaron@chromium.org> | Mon Jan 27 16:26:42 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 27 16:26:42 2025 |
tree | 4cbbc13417828f1926fc649bc66ab4583b61ec34 | |
parent | e03196a69fe6733fc15ed802d96bb453a020abb4 [diff] |
Avoid IsFetchLaterUseDeferredFetchPolicyEnabled() for documents without frame. Script-created documents (e.g., from DOMParser API) will have a null frame, and don't need to call IsFetchLaterUseDeferredFetchPolicyEnabled(), which is somewhat slow. This swaps the order of conditions around the && to put the slower one second. This should avoid 0.47% of the time spent in the TodoMVC-JavaScript-ES5 Speedometer3 workload. Change-Id: I2c0041902f718631038642b99dc391bc489bfa86 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6198668 Commit-Queue: David Baron <dbaron@chromium.org> Reviewed-by: Ming-Ying Chung <mych@chromium.org> Cr-Commit-Position: refs/heads/main@{#1411644}
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.