GithubHelp home page GithubHelp logo

new compression google/brotli about zstd HOT 2 CLOSED

tomByrer avatar tomByrer commented on April 26, 2024 1
new compression google/brotli

from zstd.

Comments (2)

Cyan4973 avatar Cyan4973 commented on April 26, 2024 1

Thanks @tomByrer

Yes, I'm aware of the Brotli project by Google.
I believe it's a nice team making a really good job.

However, the direction selected is quite different from Zstd, resulting in fairly different optimization directions.
If I'm not mistaken,
initially, Brotli was about speed, most importantly decompression speed, and targeting a specific file type, fonts. They have since changed course a bit, by now targeting "general-purpose compression" and "more compression", but these roots are still there.

I believe that they made the following calculation : speed => huffman => poor compression at high statistics => Let's make statistics small => Lots of symbols (2nd order). In selecting which symbols to add, the initial use case (font compression) was rather key to determine them. They are now statically defined in the format.
Zstd rather made the following choice : speed => fse => good compression at high statistics => Let's use less symbols. And I haven't really finished this part of the job, but that gives you a direction.

So of course, since both algorithms are LZ-based, they still have some common elements, but due to these different initial impulsions, there are also some important design differences, which can't be erased by a last minute addition (such as swapping fse and huffman).

Also, note that fse did not existed when brotli started, so it limited their choice.

from zstd.

tomByrer avatar tomByrer commented on April 26, 2024

Yes, I suspected it was meant to replace Zopfli for WOFF/WOFF2; thanks for the details!

from zstd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.