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)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Patch coming up
Priority: -- → P2
Target Milestone: --- → mozilla1.9alpha
Attached patch Proposed patch (obsolete) — Splinter Review
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.
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.
The boolean for "possible change has bits that enumData->change does not" was reversed in the original patch....
Attachment #205000 - Attachment is obsolete: true
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.

Attachment

General

Created:
Updated:
Size: