Closed Bug 1520645 Opened 3 years ago Closed 3 years 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 email@example.com: 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.