[PATCH] D152162: DWP multithreading

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 09:53:41 PDT 2023


dblaikie added a subscriber: MaskRay.
dblaikie added a comment.

Do you have a profile for this? I think there's probably more low-hanging fruit that'd be good to address before parallelism's the tool I'd reach for. Like currently using MC to write the output adds a lot of overhead of copying all the to-be-written bytes into buffers before writing them out, and the inputs are probably decompressed and cached...

Comparing a profile between llvm-dwp and gold's dwp might give some hints at places to improve/where time's being wasted.

Though I'm not averse to adding multithreading.

If there were ways to share some of lld's multithreading & more efficient reading/writing that'd be great too, though I think last time that was mentioned @MaskRay suggested it'd be better to reimplement things - maybe at least inspired by lld's implementation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152162



More information about the llvm-commits mailing list