Improving Link Time on Windows with clang-cl and lld
http://blog.llvm.org/2018/01/improving-link-time-on-windows-with.html [blog.llvm.org]
2018-01-09 21:30
In this blog post, we’ll first go over some technical background about CodeView so that we can understand the problem, followed by a summary of existing attempts to speed up type merging. Finally, we’ll describe a novel extension to the PE/COFF file format which speeds up linking by offloading part of the work required to de-duplicate types to the compiler and using a new algorithm which uniquely identifies type records even across input files, and discuss the various tradeoffs of each approach. Finally, we’ll present some benchmarks and discuss how you can try this out in clang-cl and lld today.