Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Standard dictionary for web usage #3100

Open
tuxayo opened this issue Mar 19, 2022 · 7 comments
Open

Feature request: Standard dictionary for web usage #3100

tuxayo opened this issue Mar 19, 2022 · 7 comments
Assignees
Labels
feature request long-term valid topics that are expected take a long time to make progress

Comments

@tuxayo
Copy link

tuxayo commented Mar 19, 2022

Describe the solution you'd like
End goal is to have web browsers and servers use zstd the same way they now use brotli and gzip. IIUC the first step would be to have a dictionary optimized for web usage. Fyrd/caniuse#4065 (comment)

There doesn't seem to be a similar ticket. Feel free to close as dup if it's the case.

@tuxayo tuxayo changed the title Standard dictionary for web usage Feature request: Standard dictionary for web usage Mar 19, 2022
@felixhandte felixhandte self-assigned this Mar 19, 2022
@felixhandte felixhandte added question feature request long-term valid topics that are expected take a long time to make progress and removed question labels Mar 19, 2022
@felixhandte
Copy link
Contributor

Hi @tuxayo,

We've discussed this a bunch internally, and we've had related conversations on various issues (#1669, #315, #2853, mozilla/standards-positions#105). The summary is that this is something we would like to do. But it requires time that we have not yet been able to invest.

@tuxayo
Copy link
Author

tuxayo commented Jan 9, 2023

Hi, thanks for the update @felixhandte

Still no time for this? Wouldn't the gain over brotli bring a bit better first loading experience of facebook's websites? Make the HTML, CSS, JS be ready a bit faster so it can display the text content while waiting for media content. (which should still take the same time)

@daiaji
Copy link

daiaji commented Jan 23, 2023

I think it is beneficial for everyone to extend zstd to HTTP/3. Since zstd can provide better compression ratio and speed than the existing scheme by using the appropriate dictionary, why not do it?

Moreover, the compression algorithm used in the existing HTTP protocol does lack more modernization, such as multi-core support and better dictionaries.

At this stage, there is really no compression algorithm more suitable for HTTP/3 than ZTSD.

@gvollant
Copy link

Somes people requested this feature at https://bugzilla.mozilla.org/show_bug.cgi?id=1301878

@brunoais
Copy link

At this stage, there is really no compression algorithm more suitable for HTTP/3 than ZTSD.

For dynamic content only. For static content brotli is still the best choice.

@jefer94
Copy link

jefer94 commented Nov 23, 2023

You should implement cache with Brotli for dynamic content and Zstandard for each other dynamic contents, I really wish to see Zstandard on Gecko, Webkit and Blink, do you have any idea when this will release for them, right now Zstandard was release on Chrome using Flags, so I can use it, but my clients can not

The results of implement Brotli before save the content in cache are very good, and it should reduce the response time x10, x15 (in heavy contents)

@ekinnear
Copy link

ekinnear commented Apr 5, 2024

On our end, I think we'd be interested in incorporating a web-focused dictionary as we consider implementing zstandard support.

If we can drive even bigger wins for web content, that is an added bonus for the story for deploying zstandard in the browser (assuming there's a good way to indicate when the dictionary is in use, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request long-term valid topics that are expected take a long time to make progress
Projects
None yet
Development

No branches or pull requests

7 participants