Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios (opens external site)

241 points by nonadhocproblem 13 hours ago github.com 74 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (4)

  1. It might do you some good to have an object-level understanding of claims before opining on them. Especially in a field like compression, where most claims are easily falsifiable.
    Replies (1)
    1. But the most important one often is implicit and harder to falsify: that a compress-decompress cycle will round-trip for every possible input and compression setting.

      Having said that this repo has fairly extensive tests for that. See https://github.com/welcome-to-the-sunny-side/misa77/blob/mai.... I couldn’t find them covering all settings, but that may be just me not looking hard enough, and even if they don’t, adding that is easy.

      Replies (1)
      1. I agree but this feels like a bit of a red herring since we're talking about performance here. Imagine trying to design a compression algorithm that's "maximally bad" in this sense. That is, it is extremely performant and correct on most data (it roundtrips), but there's some class of data for which it fails (decompression doesn't produce the original bytes), and fixing the algorithm just for this class of data takes away its performance advantages on most classes of data. In practice, this seems quite hard/weird to do.

        Although relatedly, it's definitely possible for claims on performance (instead of correctness) to only hold on certain classes of data.

        Replies (1)
        1. > this seems quite hard

          I dunno, do matching against a hash table and only compare a short fingerprint. It'll be a meaningful speed up, usually be right. Fail in exceptional cases, and lose the performance advantage if you fix it.