Open Bug 1554503 Opened 6 years ago Updated 2 years ago

Recycle display items when building display list for modified frames

Categories

(Core :: Web Painting, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: mikokm, Unassigned)

References

(Blocks 1 open bug)

Details

Currently the display items for modified frames are destroyed, and the freed memory is returned to the arena allocator. In many cases, the next display list build will ask for that same memory chunk back, and rebuild the same kind of item.

We could instead implement some kind of recycling mechanism, and reuse the display items after changing the modified fields. Besides reducing the amount of memory allocations, this would also reduce the cost of managing display item - frame relationship (bug 1526970).

See Also: → 1697979
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.