cgltf VS LZ4

Compare cgltf vs LZ4 and see what are their differences.

cgltf

:diamond_shape_with_a_dot_inside: Single-file glTF 2.0 loader and writer written in C99 (by jkuhlmann)

LZ4

Extremely Fast Compression algorithm (by lz4)
Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarQube - Static code analysis for 29 languages.
  • talent.io - Download talent.io’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
cgltf LZ4
7 13
1,025 7,590
- 1.1%
6.1 9.4
10 days ago 4 days ago
C C
MIT License 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.

cgltf

Posts with mentions or reviews of cgltf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-23.

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 2022-09-28.
  • An efficient image format for SDL
    4 projects | reddit.com/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!
  • Bzip3 – a better and stronger spiritual successor to bzip2
    4 projects | news.ycombinator.com | 10 May 2022
    If anyone just cares for speed instead of compression I’d recommend lz4 [1]. I only recently started using it. Its speed is almost comparable to memcpy.

    [1] https://github.com/lz4/lz4

  • I just took a random screenshot and made it look prettier. [ I don't know if this counts as fanart ]
    2 projects | reddit.com/r/PixelGun | 20 Dec 2021
    E: Realtime compression (A good compression library like Zstandard can make a game less than half the size while taking a tiny amount of CPU power when loading stuff. I think thats a pretty worthwhile trade.) (ZSTD github) (LZ4 github)
  • What's the best way to compress strings?
    6 projects | reddit.com/r/cpp | 29 Jul 2021
    lz4 for maximum decompression speed, for data that is often read but rarely written
  • How to become a tools/graphics/engine programmer
    2 projects | reddit.com/r/gameenginedevs | 23 Apr 2021
    Getting lost in material models is tempting. But, at this point you are overdue for working on your own asset pipeline. glTF is great. But, you should learn how to do it yourself. The hardest part will be reading source asset files. The FBX SDK is painful. Assimp isn't great either. Writing your own exporter to your own intermediate text format from Maya or Blender would be good if you are up for it. From whatever source, make your own archive format and binary formats for meshes, animations, textures and scenes. Use https://github.com/lz4/lz4 for compression. You should be able to decompress a list of assets into a big linear array and use them right there with just a bit of pointer fix-up. Minimize the amount of memory you have to touch from start to finish. Data that is going to the GPU (textures, vertex/index buffers) should decompress straight into mapped buffers for fast uploads.
  • LZ4, an Extremely Fast Compression Algorithm
    9 projects | news.ycombinator.com | 27 Jan 2021
    I'm not a fan of the stacked bar charts, I like the table of data for "Benchmarks" on the github source page: https://github.com/lz4/lz4

    It makes it very clear where LZ4 fits into comparisons with compression speed, decompression speed and compression ratio

  • lz4_flex 0.7.2 reaches parity with cpp reference implementation on speed and ratio
    3 projects | reddit.com/r/rust | 18 Jan 2021
    It's hard to tell, how much since the latest lz4 1.9 has been improved, because the (benchmarks)[https://github.com/lz4/lz4/commit/31763c59fca9a38bc697cd37f591d6ba385f7614#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5] are executed with different processors
    3 projects | reddit.com/r/rust | 18 Jan 2021
    Which version are you using ? Is that the reference implementation at github.com/lz4/lz4 ?

What are some alternatives?

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

zstd - Zstandard - Fast real-time compression algorithm

Snappy - A fast compressor/decompressor

LZMA - (Unofficial) Git mirror of LZMA SDK releases

brotli - Brotli compression format

ZLib - A massively spiffy yet delicately unobtrusive compression library.

tinygltf - Header only C++11 tiny glTF 2.0 library

LZFSE - LZFSE compression library and command line tool

FBX2glTF - A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.

gdx-gltf - GLTF 2.0 3D format support and PBR shader implementation for LibGDX

RocksDB - A library that provides an embeddable, persistent key-value store for fast storage.

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

assimp - The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.