[PATCH] D117853: [ELF] Parallelize --compress-debug-sections=zlib

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 21 13:21:35 PST 2022


MaskRay added inline comments.


================
Comment at: lld/ELF/OutputSections.cpp:345
   // Write section contents to a temporary buffer and compress it.
   std::vector<uint8_t> buf(size);
   writeTo<ELFT>(buf.data());
----------------
This zero fills the buffer, but I have tested that removing it and adding gap filling in `writeTo` does not improve performance.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117853/new/

https://reviews.llvm.org/D117853



More information about the llvm-commits mailing list