storm icon indicating copy to clipboard operation
storm copied to clipboard

Support mold linker

Open sjunges opened this issue 1 year ago • 2 comments

Hi,

while waiting for Storm to link on linux... I found this

https://www.productive-cpp.com/using-the-mold-linker-for-fun-and-3x-8x-link-time-speedups/

I believe this could be a tremendous step towards faster CI.

Sebastian

sjunges avatar Jun 10 '24 15:06 sjunges

I tried building with mold, see this branch and this action. Some first insights:

  • mold is available as package for Ubuntu >= 22.04 and Debian >= 12.
  • Older versions of mold do not support LTO and fall back to ld
  • comparing timings with mold and without there seems to be a small improvement. But as the CI time can vary quite a bit, more experiments would be needed.

volkm avatar Jun 10 '24 21:06 volkm

Cool!

Thanks for looking into it this quickly. Indeed, the difference seems not big as the mold website indicates. :(

sjunges avatar Jun 11 '24 17:06 sjunges