Skip to content

Commit a15b77f

Browse files
Utilize fast compression
Best-level compression is considerably slower and doesn't yield too large of performance wins.
1 parent ce8786c commit a15b77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ impl Server {
866866
.header_typed(CacheControl::new().with_no_cache().with_no_store());
867867
let body = rmp_serde::to_vec_named(&result).unwrap();
868868
if accepts_gzip {
869-
let mut encoder = GzEncoder::new(Vec::new(), Compression::best());
869+
let mut encoder = GzEncoder::new(Vec::new(), Compression::fast());
870870
encoder.write_all(&*body).unwrap();
871871
let body = encoder.finish().unwrap();
872872
response

0 commit comments

Comments
 (0)