Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Micro-optimizations in CollectMatchingRulesForListInternal."
This reverts commit cf2358b. Reason for revert: Causes memory regressions. Original change's description: > Micro-optimizations in CollectMatchingRulesForListInternal. > > Combine four optimizations that are too small to measure individually, > but that together benchmark positive: > > - Make CascadeLayerMap::kImplicitOuterLayerOrder a true constant, > so that the compiler doesn't have to load it from the binary > every time. (Fix resulting warning coming from implicit cast.) > - Don't count number of rejected rules separately; calculate it > at the end instead if needed. (This saves a register.) > - Don't refcount result.custom_highlight_name, especially as it's > almost never actually set. > - Store the Bloom filter directly in SelectorFilter, instead of > going through a pointer indirection every time. This also keeps > it from being allocated and deallocated every time we go hit the > uppermost element; we just clear it instead. > > Style microbenchmarks (Zen 3, LTO but no PGO): > > Initial style (µs) Before After Perf 95% CI (BCa) > =================== ========= ========= ======= ================= > ECommerce 8041 8015 +0.3% [ -0.6%, +1.0%] > Encyclopedia 71498 70901 +0.8% [ +0.2%, +1.4%] > Extension 166003 164651 +0.8% [ +0.3%, +1.3%] > News 31801 31391 +1.3% [ +0.5%, +1.8%] > Search 2164 2149 +0.7% [ -0.1%, +1.4%] > Social1 18797 18510 +1.5% [ +0.8%, +2.3%] > Social2 797 795 +0.3% [ -0.4%, +0.9%] > Sports 26062 26132 -0.3% [ -0.9%, +0.3%] > Video 31769 31868 -0.3% [ -0.9%, +0.4%] > Geometric mean +0.6% [ +0.3%, +0.7%] > > Recalc style (µs) Before After Perf 95% CI (BCa) > =================== ========= ========= ======= ================= > ECommerce 9250 9240 +0.1% [ -0.8%, +0.7%] > Encyclopedia 63747 63213 +0.8% [ +0.1%, +1.6%] > Extension 164301 163611 +0.4% [ -0.2%, +0.9%] > News 23482 23118 +1.6% [ +0.7%, +2.2%] > Search 182 181 +0.5% [ -0.9%, +1.9%] > Social1 13178 12913 +2.0% [ +1.4%, +2.7%] > Social2 395 392 +0.7% [ -0.2%, +2.1%] > Sports 19213 19090 +0.6% [ -0.1%, +1.2%] > Video 19874 19708 +0.8% [ -0.1%, +1.5%] > Geometric mean +0.9% [ +0.5%, +1.1%] > > Change-Id: I5aba1a57bdcfeba735154be814e1bd2532816e02 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3810556 > Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> > Commit-Queue: Steinar H Gunderson <sesse@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1031876} Change-Id: I537af3d9563471e5fd35fa80ca7655ba83a57a47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3812172 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Steinar H Gunderson <sesse@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1032477}
- Loading branch information
Steinar H Gunderson
authored and
Chromium LUCI CQ
committed
Aug 8, 2022
1 parent
15bc781
commit b8fe5c9
Showing
8 changed files
with
32 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters