• qaz@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      Doesn’t that make it slower because it needs to zero out all the bytes first?

      • rothaine@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        My understanding is that it’s only slightly slower: the OS maintains a pool of zeroed pages anyway, so it’s not like your program has to iterate over all the addresses and write to them.

        But it’s been a long time since I’ve done any C/C++ so I could be wrong.

        • qaz@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 hours ago

          the OS maintains a pool of zeroed pages

          TIL, I didn’t know that.

  • ranzispa@mander.xyz
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 days ago

    Hey Mongo, store this stuff; trust me it’s 1 MB. In case it turns out it is not, just give me 1 MB worth of your data.

    Thank you very much.

  • bigkahuna1986@lemmy.ml
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    3 days ago

    I want to thank this guy for dropping this in Christmas.

    Luckily my mongo ports are hidden from the Internet, as everyone else’s should be, so it will survive until Monday when I can upgrade.

    • Em Adespoton@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      3 days ago

      It is fixed as of writing, but some EOL versions (3.6, 4.0, 4.2) will not get it.

      You probably are already up to date.

      I know my MongoDB updated around the 17th.