Giter Site home page Giter Site logo

FreeBSD 13.1 is EOL, switch to zstd? about pkg HOT 3 CLOSED

cgull avatar cgull commented on August 16, 2024
FreeBSD 13.1 is EOL, switch to zstd?

from pkg.

Comments (3)

rilysh avatar rilysh commented on August 16, 2024

In a quick look, zstd seems significantly faster in compression and decompression (almost) whereas xz is significantly slower in compression but on decompression it's almost as fast as zstd. The only (probably ignorable) downside seems to is that zstd compressed result is quite larger than the xz compressed result.

from pkg.

cgull avatar cgull commented on August 16, 2024

You need to look deeper. pkg and FreeBSD have already switched to zstd for 14.0-RELEASE.

zstd's default compression parameters produce worse compression than xz (but it's very fast). But it is not hard to select compression parameters that get similar compression times and smaller file sizes than xz. zstd decompression is always much faster than xz (around 10x), and compression parameters don't change decompression performance much.

Try zstd --19 --long, for example.

I haven't looked at the choices made for FreeBSD 14 and pkg.

from pkg.

rilysh avatar rilysh commented on August 16, 2024

I don't think overriding the default will yield anything significant for data that can't be compressed any further. Disk space isn't a vital thing nowadays so in most cases the default compression is just fine.

For decompression, it's not exactly 10x faster, and mostly depends on the archive size that it's trying to decompress. For smaller archives xz decompression speed is similar to zstd.

from pkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.