Closed Bug 1845731 Opened 2 years ago Closed 2 years ago

Cache StyleRule desugaredSelectors

Categories

(DevTools :: Inspector: Rules, task)

task

Tracking

(firefox117 fixed, firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox117 --- fixed
firefox118 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

Computing desugared selectors can be costly when dealing with deeply nested rule, so cache the result so we don't re-compute it when it's not needed

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fdb9e7f3c3e [devtools] Cache StyleRule desugared selectors. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

Comment on attachment 9346063 [details]
Bug 1845731 - [devtools] Cache StyleRule desugared selectors. r=#devtools-reviewers.

Beta/Release Uplift Approval Request

  • User impact if declined: very slow devtools performance on some pages
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): DevTools only fix, simple caching mechanism
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9346063 - Flags: approval-mozilla-beta?

Comment on attachment 9346063 [details]
Bug 1845731 - [devtools] Cache StyleRule desugared selectors. r=#devtools-reviewers.

Approved for 117.0b6

Attachment #9346063 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: