Closed
Bug 319097
Opened 20 years ago
Closed 20 years ago
[FIX]Don't call SelectorMatches from Has*DependentStyle if it will have no effect
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
(Keywords: perf)
Attachments
(1 file, 1 obsolete file)
|
4.35 KB,
patch
|
Details | Diff | Splinter Review |
Patch coming up
| Assignee | ||
Updated•20 years ago
|
Priority: -- → P2
Target Milestone: --- → mozilla1.9alpha
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #205000 -
Flags: superreview?(dbaron)
Attachment #205000 -
Flags: review?(dbaron)
Comment on attachment 205000 [details] [diff] [review]
Proposed patch
I doubt this will ever make any significant difference, but r+sr=dbaron.
Attachment #205000 -
Flags: superreview?(dbaron)
Attachment #205000 -
Flags: superreview+
Attachment #205000 -
Flags: review?(dbaron)
Attachment #205000 -
Flags: review+
(Well, I suppose in an extreme edge case (a leaf where selector matching dominates and style data computation is fast because the most specific rules are fully specified), this could speed things up by close to 50%, but it's a rare edge case.)
Actually, never mind; without the hashing there probably are cases where this makes a significant difference.
| Assignee | ||
Comment 5•20 years ago
|
||
I think it makes a difference any time the list of things this is walking is long (which for state changes is any time there are a lot of state selectors).
Yeah, I was forgetting about the hashed vs. non-hashed difference between the two types of selector matching.
| Assignee | ||
Comment 7•20 years ago
|
||
The boolean for "possible change has bits that enumData->change does not" was reversed in the original patch....
| Assignee | ||
Updated•20 years ago
|
Attachment #205000 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•20 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•