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

fix: remove slow brotli compression and use optimized gzip middleware #968

Conversation

StarpTech
Copy link
Contributor

Motivation and Context

This PR removes brotli compression support due to the very slow go implementation. Caddy the popular proxy solution made a similar decision. We will evaluate zstd as a possible alternative in the future. For now only gzip is supported in the router. I also migrated to https://github.com/klauspost/compress/tree/master/gzhttp which is an optimized compression middleware for gzip. In my test the implementation was 100% faster than the current gzip middleware from chi.

TODO

@StarpTech StarpTech changed the title fix: remove brotli compression support fix: remove brotli compression support and use optimized gzip middleware Jul 26, 2024
@StarpTech StarpTech changed the title fix: remove brotli compression support and use optimized gzip middleware fix: remove slow brotli compression and use optimized gzip middleware Jul 27, 2024
@StarpTech StarpTech merged commit 1049be5 into main Jul 27, 2024
10 checks passed
@devsergiy devsergiy deleted the dustin/eng-5489-remove-brotli-compression-due-to-very-slow-go-implementation branch July 30, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants