Announcement

Collapse
No announcement yet.

Mold Linker Performance Remains Very Compelling In 2024 Over GNU Gold/ld, LLVM lld

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mold Linker Performance Remains Very Compelling In 2024 Over GNU Gold/ld, LLVM lld

    Phoronix: Mold Linker Performance Remains Very Compelling In 2024 Over GNU Gold/ld, LLVM lld

    The Mold high performance linker has long been known for offering excellent performance over GNU Gold/ld and LLVM lld while some fresh benchmark numbers reinforce the competitive advantage that persists today for this open-source project...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Impressive

    Thanks for the benchmark Michael

    Comment


    • #3
      So why isn't everyone using this already?

      Comment


      • #4
        Mold has been the default linker used in building packages for the Chromebrew project for the last year or so, building for x86_64, armv7l, and i686 architectures. It has worked really well.

        Comment


        • #5
          It probably won't be able to be the default linker without being able to support linking the Linux kernel.



          But, Rui is working on it.

          Comment


          • #6
            Originally posted by anarki2 View Post
            So why isn't everyone using this already?
            I guess many people can afford to wait an extra 30 seconds or so. Besides modl doesn't cover all use cases. Invite change and trouble in your build or wait 30 seconds? Not a big dilemma.

            Comment


            • #7
              Originally posted by anarki2 View Post
              So why isn't everyone using this already?
              I as developer when I debug something I want start app asap. But when I do release build I don't care about this anymore. So it is good for debug and dev. But you still need linker with best output

              Comment


              • #8
                Originally posted by anarki2 View Post
                So why isn't everyone using this already?
                Without it being able to cover all usage of linking an OS it's of no use. There is already an option that everyone is using that gains 95% of the performance.

                Comment


                • #9
                  Originally posted by ddriver View Post
                  I guess many people can afford to wait an extra 30 seconds or so. Besides modl doesn't cover all use cases. Invite change and trouble in your build or wait 30 seconds? Not a big dilemma.
                  There are already better options available, and yes that linking time really is annoying after doing some development on systems still using the BFD linker (Linux, Haiku, NetBSD/DragonFly). Also the memory usage is lower. I almost take it for granted the other OS's I use switched linkers numerous years ago.

                  Comment


                  • #10
                    I dont really know anything about linkers. Is there really much variance in the quality potential of their output? Is mold sacrificing output quality for performance? I feel like there are plenty of scenarios where slow antiquated crap can be replaced by stuff that is thoughtfully designed and programmed to be both performant and produce better output.

                    Anyway, I just installed a fresh gentoo system recently and enabled mold as the linker. There is like one or two packages you are instructed to disable mold on, I forget if I even use those packages, and I still use lld for the kernel and other than that everything seems to work just fine.

                    Comment

                    Working...
                    X