[PATCH] D26006: Further reduce the number of allocators

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 17:02:22 PDT 2016


ruiu added a comment.

I don't think I fully understand why this can make things faster. This patch replaces

  llvm::SpecificBumpPtrAllocator<[derived class of InputSection]>

with

  std::unique_ptr<InputSection>,

so the number of allocations and the number of deallocation (which should be zero if _exit is called) don't change, IIUC.


https://reviews.llvm.org/D26006





More information about the llvm-commits mailing list