Computing Adler32 Checksums at 41 GB/s

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • fpng

    Super fast C++ .PNG writer/reader

    This was actually considered, and other libraries do ignore checksums, or at least have options to:

    https://github.com/richgel999/fpng/issues/9

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • oss-nvjpg

    Hardware-accelerated JPEG decoding on the Nvidia Tegra X1

  • wuffs

    Wrangling Untrusted File Formats Safely

    https://github.com/google/wuffs/blob/main/std/adler32/common...

    Like the fpng implementation, it's SSE (128-bit registers), but the inner loop eats 32 bytes at a time, not 16.

    "Wuffs’ Adler-32 implementation is around 6.4x faster (11.3GB/s vs 1.76GB/s) than the one from zlib-the-library", which IIUC is roughly comparable to the article's defer32.

  • libdeflate

    Heavily optimized library for DEFLATE/zlib/gzip compression and decompression

    Note that libdeflate has used essentially the same method since 2016 (https://github.com/ebiggers/libdeflate/blob/v0.4/lib/adler32...), though I recently switched it to use a slightly different method (https://github.com/ebiggers/libdeflate/blob/v1.12/lib/x86/ad...) that performs more consistently across different families of x86 CPUs.

  • zlib-ng

    zlib replacement with optimizations for "next generation" systems.

    zlib-ng also has adler32 implementations optimized for various architectures: https://github.com/zlib-ng/zlib-ng

    Might be interesting to benchmark their implementation too to see how it compares.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

Did you konow that C is
the 7th most popular programming language
based on number of metions?