[PATCH] D27960: Use exact vector capacities to store DWARF line tables

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 17:18:52 PST 2016


aprantl added a comment.

Is there a runtime cost to doing this?



================
Comment at: lib/DebugInfo/DWARF/DWARFDebugLine.cpp:525
+  // will likely have an internal reserved memory block that is much bigger
+  // than necessary. Reduce the reserved capacity to conserve memroy.
+  Rows.shrink_to_fit();
----------------
memory


https://reviews.llvm.org/D27960





More information about the llvm-commits mailing list