Hi 👋 has anyone tried this new linker https://github.com/rui314/mold? It might maybe solve the linker speed problems (because the compilation is now quite fast, however the linking is terribly slow 🐢).
e
ephemient
12/19/2021, 6:43 PM
afaik, k/n's "link" time is not dominated by the native linker - it's compiling all the klibs to binary code in the link* task
a
alex009
12/20/2021, 12:29 PM
@svyatoslav.scherbina is there any chance that such a miracle will be implemented in the compiler? :)
s
svyatoslav.scherbina
12/20/2021, 12:45 PM
afaik, k/n’s “link” time is not dominated by the native linker - it’s compiling all the klibs to binary code in the link* task
Exactly. So I don’t expect “mold” to improve compilation time considerably.
is there any chance that such a miracle will be implemented in the compiler? :)
We don’t have plans for this. See also above 🙂
😞 1
➕ 1
a
ankushg
12/20/2021, 3:53 PM
compiling all the klibs to binary code in the link* task
Is this this something that can be done in a parallelized way, using Gradle Workers and/or configuration cache?
One of the biggest issues with the Link task is that not only does it takes a long time but it also doesn’t get parallelized when there are multiple targets to link
➕ 3
s
svyatoslav.scherbina
12/21/2021, 8:41 AM
Is this this something that can be done in a parallelized way, using Gradle Workers and/or configuration cache?