• catloaf@lemm.ee
    link
    fedilink
    English
    arrow-up
    10
    ·
    9 months ago

    Yeah, but that doesn’t mean you should allocate a billion arrays just because the memory is managed for you. It’s still inefficient.

    • nyan@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      4
      ·
      9 months ago

      You don’t need to understand the details of how memory is allocated to understand that taking up too much space is bad, and that there’s often a tradeoff between programmer time, machine execution time, and memory allocated, though.