You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the issue has not already been raised
Issue
Hi, this is not an issue as such, just an observation and you can close it as you wish.
I had a test failure moving from 7.0.0 to 7.0.1 because for my use case of compressing text the brotli response went from being smaller than gzip to being larger. I'm not sure what the default quality was in 7.0.0 but apparently it wasn't 4.
I'm now explicitly setting the brotliOptions to get the better compression but I thought you might like to know that with the 'out of the box' defaults gzip is now giving better compression for some payloads.
The text was updated successfully, but these errors were encountered:
This is on purpose. From v7.0.1, the default brotli compression level is changed to 4 instead of 11.
It is documented here.
11 means maximal compression ratio but it is remarkably slow. 4 is a balanced value.
Sure you can explicitly set a best value for your own project.
It's a breaking change introduced in v7.0.0, so that you get a major version upgrade. Unfortunately, there is a bug to prevent the compress level change, so it is fixed now in v7.0.1.
As explained by @stanleyxu2005, this change was supposed to be made in v7.0.0 but unfortunately did not work, so the patch release has simply fixed that bug
Prerequisites
Issue
Hi, this is not an issue as such, just an observation and you can close it as you wish.
I had a test failure moving from 7.0.0 to 7.0.1 because for my use case of compressing text the brotli response went from being smaller than gzip to being larger. I'm not sure what the default quality was in 7.0.0 but apparently it wasn't
4
.I'm now explicitly setting the
brotliOptions
to get the better compression but I thought you might like to know that with the 'out of the box' defaults gzip is now giving better compression for some payloads.The text was updated successfully, but these errors were encountered: