[PATCH] D99279: [lld-macho] Parallelize UUID hash computation

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 23:56:35 PST 2021


MaskRay added inline comments.


================
Comment at: lld/MachO/Writer.cpp:931
+  ArrayRef<uint8_t> data{buffer->getBufferStart(), buffer->getBufferEnd()};
+  unsigned chunkCount = parallel::strategy.compute_thread_count() * 10;
+  // Round-up integer division
----------------
Is this approach faster than fixed-size 1MiB chunks used by lld/ELF?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99279



More information about the llvm-commits mailing list