From 2600fb119af974220d3916a5916d6e31176aac1b Mon Sep 17 00:00:00 2001 From: Ze Maria Mendonca e Moura Date: Tue, 20 Feb 2018 23:40:21 +0000 Subject: [PATCH] updated comment --- gzip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gzip.go b/gzip.go index 40f8647..f91dcfa 100644 --- a/gzip.go +++ b/gzip.go @@ -28,7 +28,7 @@ const ( // The examples seem to indicate that it is. DefaultQValue = 1.0 - // For starters, if you’re compressing files that are smaller than the MTU size of a TCP packet, you’re wasting your time. 1500 bytes is the MTU size for the internet since that is the largest size allowed at the network layer. + // 1500 bytes is the MTU size for the internet since that is the largest size allowed at the network layer. // If you take a file that is 1300 bytes and compress it to 800 bytes, it’s still transmitted in that same 1500 byte packet regardless, so you’ve gained nothing. // That being the case, you should restrict the gzip compression to files with a size greater than a single packet, 1400 bytes (1.4KB) is a safe value. DefaultMinSize = 1400