bzip2: ~1% speedup by special-casing "store 1 bit" function
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Feb 2018 03:43:46 +0000 (04:43 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Feb 2018 03:43:46 +0000 (04:43 +0100)
commitfeafb3423e76d3c02a1f4fc740fb3f91a211ce1c
treedf527b15a448e1f1bb9f463de828f0528f022df8
parent982c44d030dbb9eec3ae6522b12838c5f0754070
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>
archival/libarchive/bz/blocksort.c
archival/libarchive/bz/bzlib.c
archival/libarchive/bz/compress.c