Bug 532869 - [ViewCSSImpl] Cache combined CSS rules
Summary: [ViewCSSImpl] Cache combined CSS rules
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.8 M7   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2018-03-25 15:21 EDT by Karsten Thoms CLA
Modified: 2018-04-18 02:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2018-03-25 15:21:02 EDT
ViewCSSImpl#getComputedStyle rebuilds the list combinedRuleList with each call. In my case there are 6 stylesheets and overall 175 rules that are collected by the method with each call, and the method is called some thousand times.

When the DocumentCSS contains the same stylesheets as in the last call, the list of combined rules are equal, making it a caching candidate.
Comment 1 Eclipse Genie CLA 2018-03-25 15:30:40 EDT
New Gerrit change created: https://git.eclipse.org/r/120152
Comment 3 Alexander Kurtakov CLA 2018-04-18 02:15:11 EDT
In master now. Thanks Karsten.