From 05eab84c84394faa96633cfa86fa5a42c1810e2b Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 16 Feb 2020 02:07:31 +0100 Subject: Replace crc32 with xxhash32 On the one hand, benchmarking and profiling determined xxhash32 to be faster than the zlib implementation of crc32, on the other hand profiling determined that crc32 computation contributed signifficantly to the overall runtime. Signed-off-by: David Oberhollenzer --- lib/sqfs/block_processor/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqfs/block_processor/internal.h') diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index f26d58e..b7fbef0 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -115,4 +115,6 @@ int block_processor_do_block(sqfs_block_t *block, sqfs_compressor_t *cmp, SQFS_INTERNAL int append_to_work_queue(sqfs_block_processor_t *proc, sqfs_block_t *block); +SQFS_INTERNAL sqfs_u32 xxh32(const void *input, const size_t len); + #endif /* INTERNAL_H */ -- cgit v1.2.3