Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You have to link each test file which can be slow

Using Mold [0] as the linker might help. Written by the author of lld.

  Program (linker output size):  GNU gold | LLVM lld |  mold

  Chrome 96 (1.89 GiB):            53.86s |   11.74s | 2.21s

  Clang 13 (3.18 GiB):             64.12s |    5.82s | 2.90s

  Firefox 89 libxul (1.64 GiB):    32.95s |    6.80s | 1.42s
[0] https://github.com/rui314/mold

edit: add citation, info, times, link, will -> might, and formatting.



FWIW, I tried it on a rust project here, the difference was in the noise range only; that way I knew that I was rather IO limited (linking produces lots of IO) and also that mold benchmarks _may_ potentially overpromise a bit much, at least when applied at my use case.


On a NVMe or SATA SSD?


SATA, thus my IO-limitation conclusion.

I got a new workstation recently with a good PCIe 4.0 NVMe, maybe I get around to retry and compared with that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: