summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-05-21 00:17:56 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-05-21 00:17:56 (GMT)
commit91c1b9a682a8b4d6e9b5eb47194890c14480116d (patch)
tree43ed6a6aa6a6afd13d5d8819eabc30bf94e56d6e
parent0fb0392da72ce14eb49243569248907fbfe04ee7 (diff)
downloadlz4-91c1b9a682a8b4d6e9b5eb47194890c14480116d.zip
lz4-91c1b9a682a8b4d6e9b5eb47194890c14480116d.tar.gz
lz4-91c1b9a682a8b4d6e9b5eb47194890c14480116d.tar.bz2
Performance fix : big compression speed boost for clang (+30%)
-rw-r--r--Makefile2
-rw-r--r--NEWS1
-rw-r--r--lib/lz4.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 11fe182..ac48b65 100644
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,7 @@ armtest: clean
cd programs; $(MAKE) -e bins CC=arm-linux-gnueabi-gcc CPPFLAGS="-Werror"
versionstest: clean
- @cd test; $(MAKE) -e versionstest
+ @cd test; $(MAKE)
streaming-examples:
cd examples; $(MAKE) -e test
diff --git a/NEWS b/NEWS
index 8cb5129..9eb4283 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
r130:
Fixed : incompatibility sparse mode vs console, reported by Yongwoon Cho (#105)
Fixed : LZ4IO exits too early when frame crc not present, reported by Yongwoon Cho (#106)
+Performance fix : big compression speed boost for clang (+30%)
r129:
Added : LZ4_compress_fast(), LZ4_compress_fast_continue()
diff --git a/lib/lz4.c b/lib/lz4.c
index c74044e..08cf6b5 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -432,7 +432,7 @@ static const BYTE* LZ4_getPosition(const BYTE* p, void* tableBase, tableType_t t
return LZ4_getPositionOnHash(h, tableBase, tableType, srcBase);
}
-static int LZ4_compress_generic(
+FORCE_INLINE int LZ4_compress_generic(
void* const ctx,
const char* const source,
char* const dest,