News: 0001551960

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Mold 2.40.1 Delivers More Performance - Including A New Algorithm Generated By ChatGPT

([Programming] 5 Hours Ago Mold 2.40.1)


While a point release, Mold 2.40.1 is another notable step forward for this high-speed linker alternative to GNU LD/Gold and LLVM LLD. Mold 2.40.1 brings yet more performance improvements.

Mold 2.40.1 now eliminates unnecessary memory zero-initialization with the "--compress-debug-sections" option. This change makes debug section compression faster and can even yield --compress-debug-sections usage to be faster than without using it due to the reduced file I/O.

Mold lead developer Rui Ueyama confirmed this change can drop the time by about 1.2 seconds on an AMD Ryzen Threadripper 7980X system when linking an executable with around 5GB of debug info sections.

Mold 2.40.1 also speeds things up by using a linear-time algorithm for glob pattern matching rather than an exponential pattern matching algorithm. This new algorithm should be faster for any glob pattern.

Interesting Rui turned to ChatGPT AI for coming up with this new algorithm. He noted with this glob algorithm [1]patch :

"Improve multi-glob pattern matcher so that it's linear-time

I asked ChatGPT how to match multiple glob patterns simultaneously with a given input string, while avoiding the textbook-style NFA-to-DFA conversion. Then it suggested that I implement a bitvector-based NFA simulation algorithm that I wasn't aware. I don't think I could have come up with it myself easily. This is impressive. ChatGPT is so good at programming and sometimes much better than me! It may not be to long before AI writes all the code for me."

More details on these Mold 2.40.1 changes via [2]GitHub .



[1] https://github.com/rui314/mold/commit/dac20fa24373f35b5dec44e4740db85c3eb7b3dd

[2] https://github.com/rui314/mold/releases/tag/v2.40.1



milkylainen

PuckPoltergeist

theuserbl

reavertm

skeevy420

ssokolow

caligula

ssokolow

pokeballs

Between birth and death,
Three in ten are followers of life,
Three in ten are followers of death,
And men just passing from birth to death also number three in ten.
Why is this so?
Because they live their lives on the gross level.

He who knows how to live can walk abroad
Without fear of rhinoceros or tiger.
He will not be wounded in battle.
For in him rhinoceroses can find no place to thrust their horn,
Tigers no place to use their claws,
And weapons no place to pierce.
Why is this so?
Because he has no place for death to enter.