‹ BackHN Continuity

Thread

Jemalloc 5.4.0

339 points · 94 comments · gkfasdfasdf

  1. ZenoArrow · · focus · HN ↗
    Why is this on the HN front page? Is there something particularly noteworthy about this release?
    1. baq · · focus · HN ↗
      jemalloc is something you should be aware of if you do software for a living
      1. stackghost · · focus · HN ↗
        In the Before Times, the vast majority of software was written in garbage collected language where a working knowledge of the relative merits of C memory allocators is not useful or particularly relevant.

        Why would the scads of people writing JavaScript, Java, python, go, rails, etc need to be aware of jemalloc?

        1. iam-da-author · · focus · HN ↗
          TL;DR: Because the runtime of most GC:d languages uses malloc for its internal data structures.

          I work for the runtime team of JPG @ Oracle. We use malloc in Hotspot, quite a lot actually! Providing your JVM with a good malloc can improve the performance of the runtime, both in terms of CPU and memory, by quite a bit.

          I don't think you need the details, but it's good to be aware that some mallocs are better than others, and there are multiple of them. Being aware of jemalloc is a good way of being aware of the facts I just mentioned :-).

          1. stackghost · · focus · HN ↗
            The vast majority of professional developers are not in a position where they can just swap out allocators willy-nilly. They take what they get, and write the code they're assigned to write on the platform the CTO or their product lead or whoever has decided upon.
            1. iam-da-author · · focus · HN ↗
              Okay, well, I guess all I can say is that if you strive to be one of the developers who do get the chance to care about this stuff, then you should know this stuff :-).
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.