Open StarpTech opened 1 month ago
How does the speed change if you adjust the compression level?
Even with 0
still significant.
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