]> git.baikalelectronics.ru Git - kernel.git/commit
zlib: optimize inffast when copying direct from output
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Fri, 8 Jan 2010 22:42:40 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Jan 2010 17:34:04 +0000 (09:34 -0800)
commit8c3f6adedf1e9b7e35838d32ba1589fa9e4179c0
treea7b8f2d618497cd4152ebe8e7390107a442bf0f6
parent502ee4793f4dede6a36df896e832e1dcdef32cba
zlib: optimize inffast when copying direct from output

JFFS2 uses lesser compression ratio and inflate always ends up in "copy
direct from output" case.

This patch tries to optimize 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.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Cc: Roel Kluin <roel.kluin@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/boot/Makefile
lib/zlib_inflate/inffast.c