w3ctag / design-reviews

W3C specs and API reviews
Creative Commons Zero v1.0 Universal
328 stars 55 forks source link

Zstandard Content-Encoding #930

Closed nidhijaju closed 7 months ago

nidhijaju commented 7 months ago

こんにちは TAG-さん!

I'm requesting a TAG review of Zstandard Content-Encoding.

Zstandard, or “zstd”, is a data compression mechanism described in RFC8878. It is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios. The "zstd" token was added as an IANA-registered Content-Encoding token as per https://datatracker.ietf.org/doc/html/rfc8878#name-content-encoding.

Adding browser support for "zstd" as a Content-Encoding will help load pages faster, use less bandwidth, and spend less time and CPU/power on compression on servers, resulting in reduced server costs.

Further details:

You should also know that...

N/A

We'd prefer the TAG provide feedback as (please delete all but the desired option):

💬 leave review feedback as a comment in this issue and @-notify [github usernames]

ylafon commented 7 months ago

Hi, we discuss this with @martinthomson

The TAG recognizes that small improvements in efficiency, both in compression ratio and CPU cost, do have real benefits for web users. There are costs to adding more code to the platform and having more choices available does increase the cost and complexity of negotiation. However, those costs only mean that the benefits need to be meaningful. Zstd generally performs better than brotli, the current best of the (other) standardized options. Adding zstd would be welcome.