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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Keywords: memory-footprint, perf)

Attachments

(1 file, 1 obsolete file)

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)
Oh, and AddRule doesn't need to be PR_STATIC_CALLBACK anymore, just static.
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+
This is pretty low risk in the sense that if it broke anything, it would massively break the Firefox UI, and we'd notice.
Attachment #293048 - Flags: approval1.9? → approval1.9+
Checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: