mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
smb: client: compress: increase LZ77_MATCH_MAX_DIST
Increase max distance (i.e. window size) from 1k to 8k. This allows better compression and is just as fast. Other: - drop LZ77_MATCH_MIN_DIST as it's nused -- main loop already checks if dist > 0 Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
20d4f9efe0
commit
fca46b0e68
|
|
@ -17,8 +17,7 @@
|
|||
* Compression parameters.
|
||||
*/
|
||||
#define LZ77_MATCH_MIN_LEN 4
|
||||
#define LZ77_MATCH_MIN_DIST 1
|
||||
#define LZ77_MATCH_MAX_DIST SZ_1K
|
||||
#define LZ77_MATCH_MAX_DIST SZ_8K
|
||||
#define LZ77_HASH_LOG 15
|
||||
#define LZ77_HASH_SIZE (1 << LZ77_HASH_LOG)
|
||||
#define LZ77_STEP_SIZE sizeof(u64)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user