you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 10 months ago (6 children)

Saying musl is preferable if speed is important is a bit...loaded. It's not always untrue, but it often is.

As a libc, musl has a much smaller footprint than glibc, so a computer which is short on memory capacity, memory bandwidth, or cache size could absolutely see a performance benefit. The flipside to this is that a lot of the 'bloat' in glibc are performance tricks including lots of architecture specific code.

As others have mentioned, the malloc implementation is less than ideal and can slow down highly threaded & memory intensive applications.

I work on a musl-based embedded distribution for my day-job, and also quite like using it personally for arm boards and my old ThinkPad. I wouldn't really use it for my workstation though.

As far as applications working with musl, it's not uncommon to see glibc-specific code which would need to be patched out of some applications (systemd comes to mind).

  • source
  • hideshow 6 child comments
  • [–] 6 points 10 months ago (2 children)

    Do you guys use the stock allocator?

    Using mimalloc instead seems to work pretty well.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 10 months ago (1 child)

    It does, I quite like mimalloc though I prefer to have programs compiled with their custom allocator rather than inserting them via LD_PRELOAD as I've found some issues when using it with programs like Firefox.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 10 months ago (2 children)

    Personally, i prefer a smaller general codebase with equal speed vs. a bigger one with specific hacks and workarounds.

    But honestly, at this level maybe for critical things like a high-security server (Alpine).

  • source
  • parent
  • hideshow 2 child comments