Closed Bug 1520645 Opened 1 year ago Closed 1 year ago
Improve vector recycling to avoid heap allocations
The old vector recycler had a few problems: 1. shrinking to fit would be inevitably followed by re-allocation, since it's unlikely that the consequent sizes are below the immediately followed frames 2. shrinking before clearing means that the existing contents are copied over, which is a waste The new code has more complicated logic for recycling, aimed at reducing heap allocations. It's also collecting the statistics.
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/bf95c0c1f962 WR improved vector allocation recycler r=nical
Assignee: nobody → dmalyshau
You need to log in before you can comment on or make changes to this bug.