• AbsolutelyNotAVelociraptor@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    Because 256 is exactly one byte. If you want to add a 257th member, you need a whole second byte just for that one person. That’s a waste of memory, unless you want to go to the 64k barrier of users per chat.

    • Zagorath@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Except that they’re almost certainly just using int, which is almost certainly at least 32 bits.

      256 is chosen because the people writing the code are programmers. And just like regular people like multiples of 10, programmers like powers of 2. They feel like nice round numbers.