summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorKyleJHarper <KyleJHarper@gmail.com>2015-10-23 06:52:23 (GMT)
committerKyleJHarper <KyleJHarper@gmail.com>2015-10-23 06:52:23 (GMT)
commit67b3a24707750d2f09d278cd46439ad6d94b93cb (patch)
treec63721bdd8403fca9d79c63c98252e3a1218097b /lib/lz4.h
parentbdd9143e02f60680ddb225fc84370b849b56d1ca (diff)
downloadlz4-67b3a24707750d2f09d278cd46439ad6d94b93cb.zip
lz4-67b3a24707750d2f09d278cd46439ad6d94b93cb.tar.gz
lz4-67b3a24707750d2f09d278cd46439ad6d94b93cb.tar.bz2
Final tests and reporting are done. As expected there isn't much to be gained by jumping the chain. In most of my tests I did see a moderate performance gain when invoking LZ4_compress_generic() directly with normal text. This could very easily be an edge case. Either way it's interesting and worth sharing.
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index 3e74002..edb2998 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -300,6 +300,10 @@ int LZ4_decompress_safe_usingDict (const char* source, char* dest, int compresse
int LZ4_decompress_fast_usingDict (const char* source, char* dest, int originalSize, const char* dictStart, int dictSize);
+/*
+ * Testing so we don't have to hack prototypes or the static inline nature of LZ4_compress_generic().
+ */
+int LZ4_compress_generic_wrapper(void* state, const char* source, char* dest, int inputSize, int acceleration);
/**************************************
* Obsolete Functions