[PATCH] D62362: [COFF] De-virtualize Chunk and SectionChunk

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 18:11:58 PDT 2019


rnk created this revision.
rnk added reviewers: ruiu, aganea.
Herald added a project: LLVM.

Shaves another pointer off of SectionChunk, reducing the size from 96 to
88 bytes, down from 144 before I started working on this. Combined with
D62356 <https://reviews.llvm.org/D62356>, this reduced peak memory usage when linking chrome_child.dll
from 713MB to 675MB, or 5%. At this point, I declare that I have reached
diminishing returns.

Create NonSectionChunk to provide virtual dispatch to the rest of the
chunk types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62362

Files:
  lld/COFF/Chunks.cpp
  lld/COFF/Chunks.h
  lld/COFF/DLL.cpp
  lld/COFF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62362.201108.patch
Type: text/x-patch
Size: 22285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190524/3768da1b/attachment.bin>


More information about the llvm-commits mailing list