Closed
Bug 87230
Opened 24 years ago
Closed 24 years ago
should nsRuleNode be using jump tables instead of switch statements?
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
People
(Reporter: waterson, Assigned: waterson)
Details
dbaron and I were examining a jprof profile of an iBench run, and noticed that
nsRuleNode::GetStyleData() appeared to have an inordinate amount of time spent
_in the function_. There are two big inlined switch statements that degenerate
to long, sequential test-and-jump runs of instructions. Perhaps using jump
tables (specifically for the switch statement in nsRuleNode::GetStyleData, and
the inlined nsCachedStyleData::GetStyleData() method) might improve this?
I'll take a crack at hacking that up and see if it has any effect.
Comment 1•24 years ago
|
||
*** This bug has been marked as a duplicate of 87229 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•