[PATCH] D115416: [lld-macho] Prevent writing map files on the critical path

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 9 08:48:58 PST 2021


oontvoo added a comment.

P.S: Another suggestion (since `std::future` in generally isn't great and I've heard WG21 wasn't using it in any future design), maybe just use LLVM's parallel API?
(ie.,  use the `parallel ...()` to run `writeMapFile()` in parallel with `{ finalizeLinkEditSegment(); writeOutputFile(); }` ) 
This could be better than mixing multiple threading APIs


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115416



More information about the llvm-commits mailing list