Finally I have a valid reason to learn about memory management. It was also hella weird when encountering it.

  • csm10495@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    Upvoted. This is something I learned rather recently. Sometimes it’s more performant to slowly leak than it would be to free properly. Then take x amount of time to restart every n amount of time.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      A middle ground is a memory pool or an object pool where you reuse the memory rather than free it. Instead, you free it all in one operation when that phase of your application is complete. I’ve seen this done for particle systems to reduce overhead.