diff options
author | Enzo Matsumiya <[email protected]> | 2024-09-06 14:41:50 -0300 |
---|---|---|
committer | Steve French <[email protected]> | 2024-09-15 10:42:45 -0500 |
commit | 94ae8c3fee94a87bdf982d5559f8037c6c562657 (patch) | |
tree | b0038fd3eea4583bd7eba56046baa2849ab959d9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f046d71e84e1e94cf23335129a27f5cfe3e8b75f (diff) |
smb: client: compress: LZ77 code improvements cleanup
- Check data compressibility with some heuristics (copied from
btrfs):
- should_compress() final decision is is_compressible(data)
- Cleanup compress/lz77.h leaving only lz77_compress() exposed:
- Move parts to compress/lz77.c, while removing the rest of it
because they were either unused, used only once, were
implemented wrong (thanks to David Howells for the help)
- Updated the compression parameters (still compatible with
Windows implementation) trading off ~20% compression ratio
for ~40% performance:
- min match len: 3 -> 4
- max distance: 8KiB -> 1KiB
- hash table type: u32 * -> u64 *
Known bugs:
This implementation currently works fine in general, but breaks with
some payloads used during testing. Investigation ongoing, to be
fixed in a next commit.
Signed-off-by: Enzo Matsumiya <[email protected]>
Co-developed-by: David Howells <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions