Closed Bug 256937 Opened 20 years ago Closed 20 years ago

Use state bits to avoid property lookups for Overflow properties

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file)

The patch in bug 253977 caused a Tp regression, I suspect because it started calling GetOverflowLines in a few places that we didn't before. I'm going to attach a patch that uses frame state bits to record the presence of the Overflow(Lines/OutOfFlows/Placeholders) properties. This should make the lookup case where no property is present extremely fast. Even if it turns out not to ameliorate the Tp hit in bug 253977, it's probably still worth it for columns where we use these properties a lot.
Attached patch fixSplinter Review
As described.
Comment on attachment 157018 [details] [diff] [review] fix Use state bits to speed up GetOverflowLines/OutOfFlows/Placeholders in the common case where there is no property set.
Attachment #157018 - Flags: superreview?(dbaron)
Attachment #157018 - Flags: review?(dbaron)
Attachment #157018 - Flags: superreview?(dbaron)
Attachment #157018 - Flags: superreview+
Attachment #157018 - Flags: review?(dbaron)
Attachment #157018 - Flags: review+
checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
brad tinderbox shows a significant increase in leaks and refcnt leaks for the time window where this and bug 256932 were checked in. I don't know anything about those changes, but one of those two checkins looks to have caused those leaks...
I'm pretty confident that the leaks are due to bug 256932, not this bug.
Could this patch have caused bug 266454?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: