Closed Bug 1520423 Opened 6 years ago Closed 2 years ago

ComputePostFilterExtents and nsCSSFilterInstance::SetBounds are malloc heavy

Categories

(Core :: SVG, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: smaug, Assigned: longsonr)

References

Details

Attachments

(1 file)

AutoTArray should work here, but I'm not sure about the best size for it.

Me neither, it's the filter chain size which is unbounded in markup. Maybe guess at 8 to start, most filter chains aren't that big.

For CSS property filters the most common chain size might even be 1, though not for ComputePostFilterExtents as that does SVG filters too I believe.

(In reply to Robert Longson [:longsonr] from comment #2)

Me neither, it's the filter chain size which is unbounded in markup. Maybe guess at 8 to start, most filter chains aren't that big.

That seems about right to me too.

Priority: -- → P3
Severity: normal → S3
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: