This is an archive of the discontinued LLVM Phabricator instance.

Use exact vector capacities to store DWARF line tables
AbandonedPublic

Authored by sque on Dec 19 2016, 5:02 PM.

Details

Reviewers
echristo
Summary

A large binary's DWARF info can contain line tables with thousands of entries. Since dynamically resized vectors don't have exact capacities, there could be a large amount of wasted space. This patch changes the DWARF reader to store the line table rows in vectors with exact capacities.

Event Timeline

sque updated this revision to Diff 82040.Dec 19 2016, 5:02 PM
sque retitled this revision from to Use exact vector capacities to store DWARF line tables.
sque updated this object.
sque added a reviewer: echristo.
sque added a subscriber: llvm-commits.
sque abandoned this revision.Dec 19 2016, 5:06 PM