summaryrefslogtreecommitdiffhomepage
path: root/archival/libarchive/bz/blocksort.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-02-03 04:43:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-03 04:43:46 +0100
commitfeafb3423e76d3c02a1f4fc740fb3f91a211ce1c (patch)
treedf527b15a448e1f1bb9f463de828f0528f022df8 /archival/libarchive/bz/blocksort.c
parent982c44d030dbb9eec3ae6522b12838c5f0754070 (diff)
bzip2: ~1% speedup by special-casing "store 1 bit" function
function old new delta bsW1 - 52 +52 BZ2_compressBlock 230 225 -5 BZ2_blockSort 125 118 -7 sendMTFValues 2070 2051 -19 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 52/-31) Total: 21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/bz/blocksort.c')
-rw-r--r--archival/libarchive/bz/blocksort.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/libarchive/bz/blocksort.c b/archival/libarchive/bz/blocksort.c
index e600cb7a7..a3b099f4b 100644
--- a/archival/libarchive/bz/blocksort.c
+++ b/archival/libarchive/bz/blocksort.c
@@ -1056,7 +1056,9 @@ void BZ2_blockSort(EState* s)
}
}
+#if BZ_LIGHT_DEBUG
s->origPtr = -1;
+#endif
for (i = 0; i < s->nblock; i++)
if (ptr[i] == 0) {
s->origPtr = i;