diff options
author | Bongkyu Kim <[email protected]> | 2016-01-20 15:01:08 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-01-20 17:09:18 -0800 |
commit | 06af1c52c9ea234e0b1266cc0b52c3e0c6c8fe9f (patch) | |
tree | 6e32395e46be61e955546e673cc256e7a9e15bca /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | a3b609ef9f8b1dbfe97034ccad6cd3fe71fbe7ab (diff) |
lz4: fix wrong compress buffer size for 64-bits
The current lz4 compress buffer is 16kb on 32-bits, 32kb on 64-bits
system. But, lz4 needs only 16kb on both. On 64-bits, this causes
wasted cpu cycles for additional memset during every compression.
In case of lz4hc, the current buffer size is (256kb + 8) on 32-bits,
(512kb + 16) on 64-bits. But, lz4hc needs only (256kb + 2 * pointer) on
both.
This patch fixes these wrong compress buffer sizes for 64-bits.
Signed-off-by: Bongkyu Kim <[email protected]>
Cc: Chanho Min <[email protected]>
Cc: Yann Collet <[email protected]>
Cc: Kyungsik Lee <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions