Closed macdonst closed 1 year ago
The call to brotliCompressSync in src/http/_res-fmt.js adds a large overhead to the response time from the lambda.
brotliCompressSync
src/http/_res-fmt.js
11 of 12ms on 12kb or 91% 2.28 of 2.41s on 1.8mb or 94%
Describe the solution you'd like
It would be nice to have a way of opting out of the compression. Perhaps and option passed into arc.http() and arc.http.async()
arc.http()
arc.http.async()
Describe alternatives you've considered
I dug into alternative brotli compression libraries but the one we are using is the fastest.
https://github.com/timotejroiko/zlib-benchmark
The call to
brotliCompressSync
insrc/http/_res-fmt.js
adds a large overhead to the response time from the lambda.11 of 12ms on 12kb or 91% 2.28 of 2.41s on 1.8mb or 94%
Describe the solution you'd like
It would be nice to have a way of opting out of the compression. Perhaps and option passed into
arc.http()
andarc.http.async()
Describe alternatives you've considered
I dug into alternative brotli compression libraries but the one we are using is the fastest.
https://github.com/timotejroiko/zlib-benchmark