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

Show HN: ZAR – A new archive format with history, deduplication, encryption (opens external site)

44 points by brmmm3 1 day ago | github.com | 28 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. There does exist a pure Rust implementation of Zstandard [1] [2].

    [1] https://docs.rs/libzstd-rs-sys/

    [2] https://docs.rs/mzstd/

    Replies (2)
    1. mzstd seems to be very interesting. It is even faster than the C original. Maybe I'll replace zstd with mzstd.
      Replies (1)
      1. No, mzstd is slower

        Quick test using TurboBench [1]:

           C Size  ratio%      C MB/s    D MB/s Rank    Name            File
        
         66132683  31.20%      277.53   1217.35  33     mzstd 3         silesia.tar
        
         66217008  31.24%      295.08   1467.05  29     zstd 3          silesia.tar
        
        Download TurboBench and test both yourself with your data:

        [1] https://github.com/powturbo/TurboBench

        Replies (1)
        1. Thanks for your comment. I've already made a test implementation with mzstd and saw that zar is slower with that. So I'll keep using zstd.
    2. I've created a test implementation with mzstd.

      Unfortunately the performance is much worse than with zstd.

      Tested with compiled linux kernel 6.1.1:

      - zstd: compress ~6s, uncompress ~6s

      - mzstd: compress ~7s, uncompress ~8s (encrypted 33s)