stargz-snapshotter VS zstd

Compare stargz-snapshotter vs zstd and see what are their differences.

stargz-snapshotter

Fast container image distribution plugin with lazy pulling (by containerd)

zstd

Zstandard - Fast real-time compression algorithm (by facebook)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
stargz-snapshotter zstd
10 108
1,048 22,445
1.7% 1.5%
8.4 9.7
5 days ago 7 days ago
Go C
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

stargz-snapshotter

Posts with mentions or reviews of stargz-snapshotter. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-13.
  • Tree-shaking, the horticulturally misguided algorithm
    6 projects | news.ycombinator.com | 13 Apr 2024
    A lazy chunked delivery strategy like used in the k8s stargz-snapshotter[0] project could be effective here, where it only pulls chunks as needed, but it would probably require wasm platform changes.

    [0] https://github.com/containerd/stargz-snapshotter

  • Show HN: depot.ai – easily embed ML / AI models in your Dockerfile
    3 projects | news.ycombinator.com | 18 Jul 2023
    To optimize build speed, cache hits, and registry storage, we're building each image reproducibly and indexing the contents with eStargz[0]. The image is stored on Cloudflare R2, and served via a Cloudflare Worker. Everything is open source[1]!

    Compared to alternatives like `git lfs clone` or downloading your model at runtime, embedding it with `COPY` produces layers that are cache-stable, with identical hash digests across rebuilds. This means they can be fully cached, even if your base image or source code changes.

    And for Docker builders that enable eStargz, copying single files from the image will download only the requested files. eStargz can be enabled in a variety of image builders[2], and we’ve enabled it by default on Depot[3].

    Here’s an announcement post with more details: https://depot.dev/blog/depot-ai.

    We’d love to hear any feedback you may have!

    [0] https://github.com/containerd/stargz-snapshotter/blob/main/docs/estargz.md

    [1] https://github.com/depot/depot.ai

    [2] https://github.com/containerd/stargz-snapshotter/blob/main/docs/integration.md#image-builders

    [3] https://depot.dev

  • A Hidden Gem: Two Ways to Improve AWS Fargate Container Launch Times
    3 projects | dev.to | 27 Oct 2022
    Seekable OCI (SOCI) is a technology open-sourced by AWS that enables containers to launch faster by lazily loading the container image. It’s usually not possible to fetch individual files from gzipped tar files. With SOCI, AWS borrowed some of the design principles from stargz-snapshotter, but took a different approach. A SOCI index is generated separately from the container image and is stored in the registry as an OCI Artifact and linked back to the container image by OCI Reference Types. This means that the container images do not need to be converted, image digests do not change, and image signatures remain valid.
  • containerd/stargz-snapshotter: Fast container image distribution plugin with lazy pulling
    1 project | /r/devopsish | 12 Jul 2022
  • EStargz: Lazy pull container images for faster cold starts
    1 project | news.ycombinator.com | 17 Mar 2022
  • How to optimize the security, size and build speed of Docker images
    2 projects | news.ycombinator.com | 20 Feb 2022
  • Speeding up LXC container pull by up to 3x
    2 projects | news.ycombinator.com | 1 Feb 2022
    This is interesting and seems general purpose. Not merely for container images.

    There’s this option for OCI containers which I don’t pretend to understand: https://github.com/containerd/stargz-snapshotter

    It is used by containerd and nerdctl. You do have to build the image with it. Images work in OCI compatible registry. By fetching most used files first container can be started before loading is finished. Or so I gather.

  • Optimizing Docker image size and why it matters
    11 projects | news.ycombinator.com | 6 Jan 2022
    stargz is a gamechanger for startup time. You might not need to care about image size at all

    kubernetes and podmand support it, and docker support is likely coming. It lazy loads the filesystem on start-up, making network requests for things that are needed and therefore can often start up large images very fast.

    https://github.com/containerd/stargz-snapshotter

  • FOSS News International #2: November 8-145, 2021
    6 projects | /r/fossnews | 15 Nov 2021
    containerd/stargz-snapshotter: Fast container image distribution plugin with lazy pulling (github.com)
  • Introducing GKE image streaming for fast application startup and autoscaling
    3 projects | /r/kubernetes | 4 Nov 2021
    Yes, see https://github.com/containerd/stargz-snapshotter

zstd

Posts with mentions or reviews of zstd. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-04.
  • Drink Me: (Ab)Using a LLM to Compress Text
    2 projects | news.ycombinator.com | 4 May 2024
    > Doesn't take large amount of GPU resources

    This is an understatement, zstd dictionary compression and decompression are blazingly fast: https://github.com/facebook/zstd/blob/dev/README.md#the-case...

    My real-world use case for this was JSON files in a particular schema, and the results were fantastic.

  • SQLite VFS for ZSTD seekable format
    2 projects | news.ycombinator.com | 26 Apr 2024
    This VFS will read a sqlite file after it has been compressed using [zstd seekable format](https://github.com/facebook/zstd/blob/dev/contrib/seekable_f...). Built to support read-only databases for full-text search. Benchmarks are provided in README.
  • Chrome Feature: ZSTD Content-Encoding
    10 projects | news.ycombinator.com | 1 Apr 2024
    Of course, you may get different results with another dataset.

    gzip (zlib -6) [ratio=32%] [compr=35Mo/s] [dec=407Mo/s]

    zstd (zstd -2) [ratio=32%] [compr=356Mo/s] [dec=1067Mo/s]

    NB1: The default for zstd is -3, but the table only had -2. The difference is probably small. The range is 1-22 for zstd and 1-9 for gzip.

    NB2: The default program for gzip (at least with Debian) is the executable from zlib. With my workflows, libdeflate-gzip iscompatible and noticably faster.

    NB3: This benchmark is 2 years old. The latest releases of zstd are much better, see https://github.com/facebook/zstd/releases

    For a high compression, according to this benchmark xz can do slightly better, if you're willing to pay a 10× penalty on decompression.

    xz -9 [ratio=23%] [compr=2.6Mo/s] [dec=88Mo/s]

    zstd -9 [ratio=23%] [compr=2.6Mo/s] [dec=88Mo/s]

  • Zstandard v1.5.6 – Chrome Edition
    1 project | news.ycombinator.com | 26 Mar 2024
  • Optimizating Rabin-Karp Hashing
    1 project | news.ycombinator.com | 9 Mar 2024
    Compression, synchronization and backup systems often use rolling hash to implement "content-defined chunking", an effective form of deduplication.

    In optimized implementations, Rabin-Karp is likely to be the bottleneck. See for instance https://github.com/facebook/zstd/pull/2483 which replaces a Rabin-Karp variant by a >2x faster Gear-Hashing.

  • Show HN: macOS-cross-compiler – Compile binaries for macOS on Linux
    7 projects | news.ycombinator.com | 17 Feb 2024
  • Cyberpunk 2077 dev release
    1 project | /r/gamedev | 11 Dec 2023
    Get the data https://publicdistst.blob.core.windows.net/data/root.tar.zst magnet:?xt=urn:btih:84931cd80409ba6331f2fcfbe64ba64d4381aec5&dn=root.tar.zst How to extract https://github.com/facebook/zstd Linux (debian): `sudo apt install zstd` ``` tar -I 'zstd -d -T0' -xvf root.tar.zst ```
  • Honey, I shrunk the NPM package · Jamie Magee
    1 project | news.ycombinator.com | 3 Oct 2023
    I've done that experiment with zstd before.

    https://github.com/facebook/zstd/blob/dev/programs/zstd.1.md...

    Not sure about brotli though.

  • How in the world should we unpack archive.org zst files on Windows?
    2 projects | /r/Archiveteam | 24 May 2023
    If you want this functionality in zstd itself, check this out: https://github.com/facebook/zstd/pull/2349
  • Release Zstandard v1.5.5 · facebook/zstd
    1 project | /r/linux | 11 Apr 2023

What are some alternatives?

When comparing stargz-snapshotter and zstd you can also consider the following projects:

kube-fledged - A kubernetes operator for creating and managing a cache of container images directly on the cluster worker nodes, so application pods start almost instantly

LZ4 - Extremely Fast Compression algorithm

acr - Azure Container Registry samples, troubleshooting tips and references

Snappy - A fast compressor/decompressor

containerd - An open and reliable container runtime

LZMA - (Unofficial) Git mirror of LZMA SDK releases

soci-snapshotter - A containerd snapshotter plugin which enables standard OCI images to be lazily loaded without requiring a build-time conversion step.

7-Zip-zstd - 7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard

snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)

ZLib - A massively spiffy yet delicately unobtrusive compression library.

uChmViewer - A fork of Kchmviewer, the best software for viewing .chm (MS HTML help) and .epub eBooks.

brotli - Brotli compression format