Skip to content

Commit fca46b0

Browse files
ematsumiyasmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 20d4f9e commit fca46b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/smb/client/compress/lz77.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
* Compression parameters.
1818
*/
1919
#define LZ77_MATCH_MIN_LEN 4
20-
#define LZ77_MATCH_MIN_DIST 1
21-
#define LZ77_MATCH_MAX_DIST SZ_1K
20+
#define LZ77_MATCH_MAX_DIST SZ_8K
2221
#define LZ77_HASH_LOG 15
2322
#define LZ77_HASH_SIZE (1 << LZ77_HASH_LOG)
2423
#define LZ77_STEP_SIZE sizeof(u64)

0 commit comments

Comments
 (0)