Closed Bug 237042 Opened 20 years ago Closed 20 years ago

optimize nsRuleNode::GetStyleData

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Keywords: perf, Whiteboard: [patch])

Attachments

(1 file)

There are a few things that could speed up nsRuleNode::GetStyleData and
GetParentData:
 * NS_LIKELY / NS_UNLIKELY (for modern gcc with -O2)
 * using dependent bits checks more and cached style data checks less (since the
two should be equivalent in many ways)
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.7beta
Attachment #143527 - Flags: superreview?(bzbarsky)
Attachment #143527 - Flags: review?(bzbarsky)
Comment on attachment 143527 [details] [diff] [review]
patch

r+sr=bzbarsky
Attachment #143527 - Flags: superreview?(bzbarsky)
Attachment #143527 - Flags: superreview+
Attachment #143527 - Flags: review?(bzbarsky)
Attachment #143527 - Flags: review+
Comment on attachment 143527 [details] [diff] [review]
patch

This should be pretty low risk since if it breaks anything, it should break
pretty much everything.
Attachment #143527 - Flags: approval1.7b?
Comment on attachment 143527 [details] [diff] [review]
patch

a=chofmann for 1.7a
Attachment #143527 - Flags: approval1.7b? → approval1.7b+
er, 1.7b
Fix checked in to trunk, 2004-03-14 09:11 -0800.
Status: ASSIGNED → 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: