From 565e140a16cb26fb878ee7554ca62c90ac9fa351 Mon Sep 17 00:00:00 2001 From: Ivan Krasin Date: Tue, 24 Jan 2012 13:52:45 -0500 Subject: [PATCH] compress/flate: increase the length of hash table from 1<<15 to 1<<17. 0%-16% speedup. R=rsc, imkrasin CC=golang-dev https://golang.org/cl/5569048 --- src/pkg/compress/flate/deflate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/compress/flate/deflate.go b/src/pkg/compress/flate/deflate.go index 5745336cc8..1e725890b7 100644 --- a/src/pkg/compress/flate/deflate.go +++ b/src/pkg/compress/flate/deflate.go @@ -27,7 +27,7 @@ const ( // stop things from getting too large. maxFlateBlockTokens = 1 << 14 maxStoreBlockSize = 65535 - hashBits = 15 + hashBits = 17 hashSize = 1 << hashBits hashMask = (1 << hashBits) - 1 hashShift = (hashBits + minMatchLength - 1) / minMatchLength -- 2.50.0