[U-Boot] [PATCH RFC] zlib: Optimize decompression

Wolfgang Denk wd at denx.de
Sat Dec 5 01:32:43 CET 2009


Dear Joakim Tjernlund,

In message <1258633364-20805-1-git-send-email-Joakim.Tjernlund at transmode.se> you wrote:
> 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 at transmode.se>
> ---
> 
>  I have the same optimization queued for linux. Figured it
>  would be useful for u-boot too.
> 
>  Testing and feedback welcome.
> 
>  lib_generic/zlib.c |   56 ++++++++++++++++++++++++++++++++++++++++-----------
>  1 files changed, 44 insertions(+), 12 deletions(-)

Applied to "next", thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I don't mind criticism. You know me. I've  never  been  one  to  take
offence  at  criticism. No one could say I'm the sort to take offence
at criticism -- Not twice, anyway. Not without blowing bubbles.
                                  - Terry Pratchett, _Witches Abroad_


More information about the U-Boot mailing list