-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Use Brotli compression for modern build #17906
Conversation
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
ed27c97
to
e3c8b8b
Compare
This would be unblocked after aio-libs/aiohttp#8063 |
4f051c1
to
3d54e18
Compare
Is this unblocked now? Does the backend support Brotli now? |
Nope… Waiting for 3.10 to be released still. |
WalkthroughWalkthroughThe changes enhance the Gulp build process by introducing Brotli compression alongside the existing Zopfli compression. New functions for each compression method streamline file handling and allow for parallel execution of both algorithms. This improves efficiency and flexibility in managing application assets, particularly in terms of file size reduction and processing speed. Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (2)
Files skipped from review as they are similar to previous changes (1)
Additional comments not posted (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
@bramkragten this is ready to go now. Core is now using I could probably improve the compression speed here by using native streams and better parallelizing, but I'll save that for another day. cc: @bdraco |
Tested and working as expected with latest frontend bump |
Proposed change
Since
aiohttp
doesn't support Brotli, this is just proof of the potential gain for now. We either need to help them implement or write a middleware to handle it. Looks like much of the work was done in aio-libs/aiohttp#2945, but it was abandoned and never merged.Since all major browsers that get served the modern build also support Brotli, this just replaces the gzip files for that bundle and keeps Zopfli for everything else (although it'd be much safer if we first merge #16506).
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
Summary by CodeRabbit
New Features
Chores