From 1c73a2276231db8e0491485a69bb0e272f330d25 Mon Sep 17 00:00:00 2001 From: Yinon Ehrlich Date: Mon, 4 Jul 2022 07:24:02 +0300 Subject: [PATCH 1/2] type (English) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a610b6d..db762b8 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ app.add_middleware( **Parameters**: - _(Optional)_ `quality`: Controls the compression speed vs compression density tradeoff. The higher the quality, the slower the compression. Range is 0 to 11. -- _(Optional)_ `mode`: The compression mode can be: `"generic"`, `"text"` (`Defaul` for UTF-8 format text input) or `"font"` (for WOFF 2.0). +- _(Optional)_ `mode`: The compression mode can be: `"generic"`, `"text"` (`Default` for UTF-8 format text input) or `"font"` (for WOFF 2.0). - _(Optional)_ `lgwin`: Base 2 logarithm of the sliding window size. Range is 10 to 24. - _(Optional)_ `lgblock`: Base 2 logarithm of the maximum input block size. Range is 16 to 24. If set to 0, the value will be set based on the quality. - _(Optional)_ `minimum_size`: Only compress responses that are bigger than this value in bytes. From 307d2dbb4833f26f164070073e2be591880f0c7d Mon Sep 17 00:00:00 2001 From: Yinon Ehrlich Date: Mon, 4 Jul 2022 07:40:31 +0300 Subject: [PATCH 2/2] replace broken link to gzip vs brotli --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db762b8..18c300e 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ app.add_middleware( ## Performance -To better understand the benefits of Brotli over GZip, please read the great article written by Akamai team, [Understanding Brotli's Potential](https://blogs.akamai.com/2016/02/understanding-brotlis-potential.html), where detailed information and benchmarks are provided. +To better understand the benefits of Brotli over GZip, see, [Gzip vs. Brotli: Comparing Compression Techniques](https://www.coralnodes.com/gzip-vs-brotli/), where detailed information and benchmarks are provided. A simple comparative example using Python `sys.getsizof()` and `timeit`: