LZ4 VS basis_universal

Compare LZ4 vs basis_universal and see what are their differences.

LZ4

Extremely Fast Compression algorithm (by lz4)

basis_universal

Basis Universal GPU Texture Codec (by BinomialLLC)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
LZ4 basis_universal
21 15
9,192 2,563
1.7% 1.1%
9.5 4.7
6 days ago 3 months ago
C C++
GNU General Public License v3.0 or later Apache License 2.0
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.

LZ4

Posts with mentions or reviews of LZ4. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-21.
  • Number sizes for LZ77 compression
    1 project | /r/compression | 30 Apr 2023
    LZ4 is a bit more complicated, but seems faster: https://github.com/lz4/lz4/blob/dev/doc/lz4_Block_format.md
  • Rsyncing 20TB locally
    2 projects | /r/zfs | 21 Mar 2023
    According to these https://github.com/lz4/lz4 values you need around ten (10) quite modern cores in parallel to accomplish around 8GB/s.
  • An Intro to Data Compression
    1 project | dev.to | 17 Feb 2023
    The popular NoSQL database Cassandra utilizes a compression algorithm called LZ4 to reduce the footprint of data at rest. LZ4 is characterized by very fast compression speed at the cost of a higher compression ratio. This is a design choice that allows Cassandra to maintain high write throughput while also benefiting from compression in some capacity.
  • Micron Unveils 24GB and 48GB DDR5 Memory Modules | AMD EXPO and Intel XMP 3.0 compatible
    1 project | /r/gadgets | 21 Jan 2023
    Yeah, sure, when you have monster core counts. on regular systems, not so much, here's from their own github page. it achieves, eh, 5GB/s on memory to memory transfers, i.e. best case scenario. so, uh, no? i'm not even sure it's any better than the CPU decompressor one Nvidia used.
  • Cerbios Xbox Bios V2.2.0 BETA Released (1.0 - 1.6)
    2 projects | /r/originalxbox | 31 Dec 2022
  • zstd
    8 projects | news.ycombinator.com | 19 Dec 2022
    > The downside of lz4 is that it can’t be configured to run at higher & slower compression ratios.

    lz4 has some level of configurability? https://github.com/lz4/lz4/blob/v1.9.4/lib/lz4frame.h#L194

    There's also LZ4_HC.

  • Best archival/compression format for whole hard drives
    1 project | /r/DataHoarder | 7 Dec 2022
    Since nobody mentioned it, I'll add lz4 (https://github.com/lz4/lz4).
  • I'm new to this
    2 projects | /r/androidroot | 28 Nov 2022
    Get your bootloader unlocked via Download mode and then obtain your stock firmware, preferably for your current region https://samfw.com (Download mode: CARRIER_CODE). Get the boot image from AP with 7zip, unpack from LZ4 with https://github.com/lz4/lz4/releases (drag and drop), patch with Magisk https://github.com/topjohnwu/magisk/releases/latest, grab the new image, name it "boot.img" and pack it into a .tar with 7zip and flash to AP with odin https://odindownload.com
  • An efficient image format for SDL
    4 projects | /r/gamedev | 28 Sep 2022
    After some investigations and experiments, I found out that it was the PNG compression (well, decompression I should say) that took a while. So I've made some experiments using the LZ4 compression library, which is focused on decompression speed, and it turned out to be an excellent solution!
  • how to root Samsung galaxy note 10 plus 5g(SM-N976B
    1 project | /r/androidroot | 21 Jul 2022
    Root with magisk: whether you use OneUI ≤3 or 4, patch the specific image needed for it (pre 4: boot, after 4: recovery) and flash it to the device. Boot it and enjoy root. https://github.com/lz4/lz4/releases can help extracting it from the AP tarball.

basis_universal

Posts with mentions or reviews of basis_universal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-03.
  • The Near-Lossless Image Formats Using Ultra-Fast LZ Codecs
    2 projects | news.ycombinator.com | 3 Apr 2023
    The author of the OP also develops Basis, which is designed to take advantage of GPU texture compression formats. GPU formats have a fixed bitrate which makes them efficient to sample but not the most efficient to transmit, so Basis layers on a second level of compression that unpacks into a GPU texture.

    https://github.com/BinomialLLC/basis_universal

  • Why do games need so much RAM?
    1 project | /r/gamedev | 5 Feb 2023
    You might find https://github.com/BinomialLLC/basis_universal interesting :)
  • Hello, PNG
    13 projects | news.ycombinator.com | 18 Jan 2023
    Erm, aren't both WebP and PNG rather useless for games? How do you convert those formats into one of the hardware-compressed texture formats consumed by the GPU (like BCx, ETC or ASTC)? Without those you're wasting a ton of GPU memory bandwidth when sampling textures.

    (there are some alternatives, like https://github.com/BinomialLLC/basis_universal, or http://www.radgametools.com/oodletexture.htm)

  • Have any of the big game engines shown interest in JXL?
    2 projects | /r/jpegxl | 14 Dec 2022
    In addition to this, texture compression is optimized for random access and has to use a fixed amount of bytes per each block, but there is a possibility to further compress this during the delivery. This is called the supercompression and Basis Universal is a good example of this. JPEG XL is also based on tiles for parallel decoding, but those tiles are too large (128x128 minimum, compare with 12x12 maximum of ASTC) so it is not yet suitable for GPU as it stands.
  • Brotli-G: A GPU compression/decompression standard for digital assets
    1 project | news.ycombinator.com | 22 Nov 2022
    Im interested to see what image format specific compressors go gpu. JpegXL, AVIF, WebP... who wants to show up & throw down? Or even just fastpng?

    Meanwhile we dont really hear or regard many of the gpu-oriented compression techs. TIL Basis/KTX2 is itself zstd compressed (formerly LZ apparently?). https://github.com/BinomialLLC/basis_universal

  • An efficient image format for SDL
    4 projects | /r/gamedev | 28 Sep 2022
    You could check out Binomial's basis_universal. After Google bought them, they open sourced it and allowed use for free.
  • Show HN: 3D live tracking two climbers attempting a Sierra Nevada record
    1 project | news.ycombinator.com | 6 Jul 2022
  • Compressed Texture Converter/Writer
    4 projects | /r/opengl | 30 Mar 2022
    Another alternative you should consider is https://github.com/BinomialLLC/basis_universal
  • What image formats do you support?
    4 projects | /r/gameenginedevs | 28 Mar 2022
    Simple, open-source, standardized and supports every GPU-oriented format around. And, built-in library support for https://github.com/BinomialLLC/basis_universal
  • Rasterization in slow motion
    4 projects | /r/GraphicsProgramming | 27 Jan 2022
    Yep. That lib is great. And, similarly https://github.com/nfrechette/acl and https://github.com/BinomialLLC/basis_universal

What are some alternatives?

When comparing LZ4 and basis_universal you can also consider the following projects:

zstd - Zstandard - Fast real-time compression algorithm

zig-gamedev - Main monorepo for @zig-gamedev libs and example applications

Snappy - A fast compressor/decompressor

KTX-Software - KTX (Khronos Texture) Library and Tools

brotli - Brotli compression format

VK-GL-CTS - Khronos Vulkan, OpenGL, and OpenGL ES Conformance Tests

LZMA - (Unofficial) Git mirror of LZMA SDK releases

crunch - Advanced DXTc texture compression and transcoding library

ZLib - A massively spiffy yet delicately unobtrusive compression library.

stb - stb single-file public domain libraries for C/C++

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

qoi2-bikeshed - "Quite OK Image" version 2 discussions