GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • Compression

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com — brotli Alternatives - C++ Compression | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

brotli

Brotli compression format

google logo
Source Code    Changelog
Suggest Changes
Take the C++ Developer Survey - About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email. Take the survey »
Popularity
9.3
Stable
Activity
7.9
Growing
Stars 15,191
Watchers 319
Forks 1,409
Last Commit 4 days ago

Description

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in the following internet draft: http://www.ietf.org/id/draft-alakuijala-brotli

Brotli is open-sourced under the MIT License, see the LICENSE file.

Brotli mailing list: https://groups.google.com/forum/#!forum/brotli

Code Quality Rank: L2
Programming language: TypeScript
License: MIT License
Tags: Compression     MIT     LZ77     Huffman    
Latest version: v1.1.0

brotli alternatives and similar libraries

Based on the "Compression" category.
Alternatively, view brotli alternatives based on common mentions on social networks and blogs.

  • zstd

    9.6 8.8 L2 brotli VS zstd
    Zstandard - Fast real-time compression algorithm
    meta logo
  • LZ4

    9.2 9.7 L2 brotli VS LZ4
    Extremely Fast Compression algorithm
    lz4 logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • ZLib

    9.0 9.2 L2 brotli VS ZLib
    A massively spiffy yet delicately unobtrusive compression library.
    madler logo
  • Snappy

    8.5 6.5 L2 brotli VS Snappy
    A fast compressor/decompressor
    google logo
  • zlib-ng

    6.8 9.6 L3 brotli VS zlib-ng
    zlib replacement with optimizations for "next generation" systems.
    zlib-ng logo
  • Minizip

    6.5 8.9 L2 brotli VS Minizip
    Fork of the popular zip manipulation library found in the zlib distribution.
    nmoinvaz logo
  • LZFSE

    6.3 0.0 L2 brotli VS LZFSE
    LZFSE compression library and command line tool
    lzfse logo
  • FiniteStateEntropy

    6.0 3.2 L2 brotli VS FiniteStateEntropy
    New generation entropy codecs : Finite State Entropy and Huff0
    Cyan4973 logo
  • smaz

    5.5 0.0 L4 brotli VS smaz
    Small strings compression library
    antirez logo
  • LZHAM

    4.7 0.0 L1 brotli VS LZHAM
    Lossless data compression codec with LZMA-like ratios but 1.5x-8x faster decompression speed, C/C++
    richgel999 logo
  • LZAV

    3.9 6.3 brotli VS LZAV
    Fast In-Memory Data Compression Algorithm (header-only C/C++) 540+MB/s compress, 3000+MB/s decompress, ratio% better than LZ4, Snappy, and Zstd@--1
    avaneev logo
  • tiny_jpeg.h

    3.7 0.0 L1 brotli VS tiny_jpeg.h
    Single header lib for JPEG encoding. Public domain. C99. stb style.
    serge-rgb logo
  • PhysicsFS

    2.5 0.0 L5 brotli VS PhysicsFS
    PhysFS++ is a C++ wrapper for the PhysicsFS library.
    kahowell logo
  • miniz

    2.3 brotli VS miniz
    Single C source file Deflate/Inflate compression library with zlib-compatible API, ZIP archive reading/writing, PNG writing. [Unlicense]
  • KArchive

    2.3 8.9 L1 brotli VS KArchive
    Qt addon providing access to numerous types of archives
    KDE logo
  • LZMA

    2.1 0.0 L1 brotli VS LZMA
    (Unofficial) Git mirror of LZMA SDK releases
    jljusten logo
  • LZMAT

    1.5 0.0 L2 brotli VS LZMAT
    git mirror of LZMAT (http://www.matcode.com/lzmat.htm)
    nemequ logo
  • doboz

    1.4 - brotli VS doboz
    Compression library with very fast decompression. [zlib]
  • bzip2

    - brotli VS bzip2
    A freely available, patent free, high-quality data compressor. [BSD]
  • ZZIPlib

    - brotli VS ZZIPlib
    Provides read access on ZIP-archives. [MPL/LGPL]

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of brotli or a related project?

Add another 'Compression' Library

Popular Comparisons

  • brotli
    vs
    Snappy
  • brotli
    vs
    LZ4
  • brotli
    vs
    zstd
  • brotli
    vs
    LZMA
  • brotli
    vs
    ZLib

README

SECURITY NOTE

Please consider updating brotli to version 1.0.9 (latest).

Version 1.0.9 contains a fix to "integer overflow" problem. This happens when "one-shot" decoding API is used (or input chunk for streaming API is not limited), input size (chunk size) is larger than 2GiB, and input contains uncompressed blocks. After the overflow happens, memcpy is invoked with a gigantic num value, that will likely cause the crash.

Introduction

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

Brotli is open-sourced under the MIT License, see the LICENSE file.

Brotli mailing list: https://groups.google.com/forum/#!forum/brotli

GitHub Actions Build Status Fuzzing Status

Build instructions

Vcpkg

You can download and install brotli using the vcpkg dependency manager:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install brotli

The brotli port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

Autotools-style CMake

configure-cmake is an autotools-style configure script for CMake-based projects (not supported on Windows).

The basic commands to build, test and install brotli are:

$ mkdir out && cd out
$ ../configure-cmake
$ make
$ make test
$ make install

By default, debug binaries are built. To generate "release" Makefile specify --disable-debug option to configure-cmake.

Bazel

See Bazel

CMake

The basic commands to build and install brotli are:

$ mkdir out && cd out
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
$ cmake --build . --config Release --target install

You can use other CMake configuration.

Premake5

See Premake5

Python

To install the latest release of the Python module, run the following:

$ pip install brotli

To install the tip-of-the-tree version, run:

$ pip install --upgrade git+https://github.com/google/brotli

See the [Python readme](python/README.md) for more details on installing from source, development, and testing.

Benchmarks

  • Squash Compression Benchmark / Unstable Squash Compression Benchmark
  • Large Text Compression Benchmark
  • Lzturbo Benchmark

Related projects

Disclaimer: Brotli authors take no responsibility for the third party projects mentioned in this section.

Independent decoder implementation by Mark Adler, based entirely on format specification.

JavaScript port of brotli decoder. Could be used directly via npm install brotli

Hand ported decoder / encoder in haxe by Dominik Homberger. Output source code: JavaScript, PHP, Python, Java and C#

7Zip plugin

Dart native bindings

Dart compression framework with fast FFI-based Brotli implementation with ready-to-use prebuilt binaries for Win/Linux/Mac


*Note that all licence references and agreements mentioned in the brotli README section above are relevant to that project's source code only.

Do not miss the trending, libraries, news and articles with our weekly report.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
Spin The Wheel Of Names for a cryptographically secure random name picker.
Schedule a when to meet poll.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.