Musl libc is a more preferable option if security and speed are important to you, compared to glibc, but is this currently the case? Do most applications still not work on musl? And how effective is gcompat?

  • SuperiorOne@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 days ago

    It works, but the memory allocator implementation is way too slower compared to glibc. This especially becomes a performance bottleneck if application does a lot of heap allocation/deallocation.

    I think Musl is a better choice when you work on embedded, low-end devices, or statically linked/self-contained applications. For high performance workstation usage, I still prefer glibc.

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      The default allocator is very slow but it can be changed. Chimera Linux, for example, uses mimalloc which is very fast.