deno
d3ec5aa4 - perf: consolidate HTTP Brotli compressor setup (#34282)

Commit
186 days ago
perf: consolidate HTTP Brotli compressor setup (#34282) ## Summary - Consolidates HTTP Brotli quality and window parameters into shared constants and a helper. - Reuses the helper for legacy and response-body byte-path compression while preserving the existing quality, lgwin, and buffer sizes. - Leaves streaming Brotli behavior, Node zlib Brotli behavior, and Web compression behavior unchanged. ## Validation - `cargo fmt --check` - `cargo test --locked --lib -p deno_http response_body` - `cargo build --locked --profile release-lite --bin deno` - Rebuilt a fresh same-target release-lite baseline and candidate on `bigboi`; measured `349161960` bytes baseline vs `349161888` bytes candidate, a 72-byte reduction. - Ran HTTP Brotli raw response and `node:zlib` Brotli round-trip smoke checks. Co-authored-by: Nathan Whitaker <nathan@deno.com>
Author
Parents
Loading