Closed milend closed 4 years ago
Thank you!
@michaeleisel: here's another trace of linking the same exact binary without passing an order file. This cuts the linking time from around 3m15s to 56s (outside Instruments). There's still a large section which is single-threaded, so I'm wondering if it can be parallelised – it would result in a huge perf win.
@milend how did you pass order file into linker ? In my case, the binary layout is just the same after defined order file for linking 🤔
@tcpthecode We use the -order_file
parameter.
Thanks @michaeleisel 👍
I've recorded profiling data (zld.trace.zip) for a large binary which takes several minutes to link. In terms of numbers:
zld is around 1min faster (~23% faster). Machine was rebooted before taking the measurements and the samples taken with hot file caches (i.e., linkers ran before recording the samples above). Machine is a 15" MacBook Pro 2017, i7 3.1GHz, 16GB RAM and 1TB SSD.