From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 05 Dec 2009 01:32:43 +0100 Subject: [U-Boot] [PATCH RFC] zlib: Optimize decompression In-Reply-To: <1258633364-20805-1-git-send-email-Joakim.Tjernlund@transmode.se> References: <1258633364-20805-1-git-send-email-Joakim.Tjernlund@transmode.se> Message-ID: <20091205003243.C9D033F6E3@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Joakim Tjernlund, In message <1258633364-20805-1-git-send-email-Joakim.Tjernlund@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 > --- > > 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_