Investigate a generic throttling mechanism for high frequency calls in Inspector's RuleView
Categories
(DevTools :: Inspector: Rules, task, P3)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
References
Details
Follow-up to Bug 1665547.
We are adding throttling specific to the ColorPicker widget in Bug 1665547, but as Razvan detailed in the review, we could implement a more generic throttling mechanism directly at the RuleModel level: https://searchfox.org/mozilla-central/rev/5efefd3ef214ed6d3234ba245c1da3004ead94e0/devtools/client/inspector/rules/models/rule.js#582-596
The challenge is that not all the "high-frequency" calls share the same performance issue and throttling will degrade the user experience (there will be a visible stutter when changes are applied).
See more details at https://phabricator.services.mozilla.com/D90530#2896967
Note that some of the performance issues are related to the stylesheet size. This can be easily tested with the following page: https://bug1665547-test-cases.glitch.me/
Description
•