• 7heo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    In this implementation, to maximise performance, we consider each individual byte of the file separately, and look it up in π.

    Oh, look, a compression ratio of 1! So performant!

    • Matt/D@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      It’s actually worse than that. It looks like it uses a short to store the index, which is normally 2 bytes. So it takes 2 bytes for every byte stored in the metadata!