]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
zlib: Optimize decompression
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 19 Nov 2009 12:22:44 +0000 (13:22 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 5 Dec 2009 00:32:32 +0000 (01:32 +0100)
commitcd514aeb996e2f7aefbe1f78481965d9d074aed4
tree7d137cf995168e0722913d670a696f81344f69ec
parent20dde48bcadd856c86a91d5463831a10be46db83
zlib: Optimize decompression

This patch optimizes the direct copy procedure.
Uses get_unaligned() but only in one place.
The copy loop just above this one can also use this
optimization, but I havn't done so as I have not tested if it
is a win there too.
On my MPC8321 this is about 17% faster on my JFFS2 root FS
than the original. No speed test has been performed in u-boot.

Size increase on ppc: 484 bytes

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
lib_generic/zlib.c