summaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor/internal.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-16 02:07:31 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-16 02:07:31 +0100
commit05eab84c84394faa96633cfa86fa5a42c1810e2b (patch)
treec7f1783975339287f81270c2fe906ded1e058ac2 /lib/sqfs/block_processor/internal.h
parent81f9ddf58b4024d51b24123788c860bb08a85b04 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/internal.h')
-rw-r--r--lib/sqfs/block_processor/internal.h2
1 files changed, 2 insertions, 0 deletions
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 */