Closed
Bug 408295
Opened 17 years ago
Closed 17 years ago
avoid temporary arrays when cascading style rules
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9beta3
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Keywords: memory-footprint, perf)
Attachments
(1 file, 1 obsolete file)
10.57 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
Sicking was bugging my about allocations growing the temporary per-weight arrays we use when doing CSS cascading. This avoids those allocations by using an existing linked-list pointer to store those lists. This patch does so; it applies on top of the patch in bug 408135.
Attachment #293038 -
Flags: superreview?(jonas)
Attachment #293038 -
Flags: review?(jonas)
Assignee | ||
Comment 1•17 years ago
|
||
Oh, and AddRule doesn't need to be PR_STATIC_CALLBACK anymore, just static.
Assignee | ||
Comment 2•17 years ago
|
||
Fix that, and a few comments.
Attachment #293038 -
Attachment is obsolete: true
Attachment #293048 -
Flags: superreview?(jonas)
Attachment #293048 -
Flags: review?(jonas)
Attachment #293038 -
Flags: superreview?(jonas)
Attachment #293038 -
Flags: review?(jonas)
Comment on attachment 293048 [details] [diff] [review] use RuleValue's linked list instead of arrays while cascading Sweet!
Attachment #293048 -
Flags: superreview?(jonas)
Attachment #293048 -
Flags: superreview+
Attachment #293048 -
Flags: review?(jonas)
Attachment #293048 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #293048 -
Flags: approval1.9?
Assignee | ||
Comment 4•17 years ago
|
||
This is pretty low risk in the sense that if it broke anything, it would massively break the Firefox UI, and we'd notice.
Updated•17 years ago
|
Attachment #293048 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 5•17 years ago
|
||
Checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•