-
Notifications
You must be signed in to change notification settings - Fork 55
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
Very slow compression performance #50
Comments
How does the speed change if you adjust the compression level? |
Even with |
It sounds like the issue is something other than the brotli compression itself. What brotli middleware are you using? |
I don't know anything about that middleware, but you could try an encoder function that just returns w instead of creating a brotli Writer. The response won't be readable, but the performance will tell you whether the brotli encoding has anything to do with your performance issue… |
Hi, I use the module to compress 3MB HTML and Javascript. The response takes seconds ~1.8s. The variant without the brotli middleware takes ~20ms
Compression level: 6 (Default)
Machine: Mac M3 Max
The text was updated successfully, but these errors were encountered: