• Nat (she/they)
    link
    fedilink
    2120 hours ago

    A lot of times using less memory is actually better for performance because the main bottleneck is memory bandwidth or latency.

    • @timhh@programming.dev
      link
      fedilink
      13 hours ago

      It’s not just less memory though - it might also introduce spurious data dependencies, e.g. to store a bit you now need to also read the old value of the byte that it’s in.

    • Cethin
      link
      fedilink
      English
      618 hours ago

      Yep, and anding with a bit ask is incredibly fast to process, so it’s not a big issue for performance.