logoalt Hacker News

marssaxmantoday at 4:27 PM5 repliesview on HN

People have such different perspectives. 26% slower does not sound "terrible" to me; it sounds like quite a reasonable price one might choose to pay for the convenience musl offers. If musl's allocator were 2.6x slower, I might call that "not so great"... but in order to qualify as "terrible" I think the difference would have to be an order of magnitude!


Replies

loegtoday at 4:54 PM

The 26% number at the top of the article is from using mimalloc (which is a high performance allocator, at least as fast as the glibc allocator) + musl for some task, and the slowdown is coming from (probably) slow musl implementations of memcpy/memset. The musl allocator is even worse.

show 3 replies
SkiFire13today at 6:17 PM

The 26% slower appears to be for their whole application, not just the allocator. For some parts of the application to make the whole this much slower it must mean that those parts are quite a lot slower, likely much more than 2x.

Moreover the 26% is with mimalloc, with musl's allocator it's 144%, so there are likely other parts that are slower (likely the memcpy implementation)

stackskiptontoday at 5:42 PM

Ops here, I think if you NEED that convenience, sure, rock with MUSL BUT I also see a ton of devs crowing about using MUSL on my 128GB x86 Kubernetes hosts. I have plenty of Disk Space, you can ship glibc based container.

otterleytoday at 6:51 PM

I'm curious. What convenience, specifically, are people benefiting from by using musl?

show 2 replies
fhntoday at 6:38 PM

Tell your employer a 26% pay decrease for you is acceptable.