Re: [PATCH 2/3] lib: zlib_inflate: improves decompression performance

2020-11-11 Thread Jann Horn
On Wed, Nov 11, 2020 at 5:06 PM Zhaoxiu Zeng wrote: > 在 2020/11/11 11:46, Jann Horn 写道: > > On Mon, Nov 9, 2020 at 8:27 PM wrote: > >> This patch does: > >> 1. Cleanup code and reduce branches > >> 2. Use copy_from_back to copy the matched bytes from the back output buffer > > > > What exactly

Re: [PATCH 2/3] lib: zlib_inflate: improves decompression performance

2020-11-11 Thread Zhaoxiu Zeng
在 2020/11/11 11:46, Jann Horn 写道: > On Mon, Nov 9, 2020 at 8:27 PM wrote: >> This patch does: >> 1. Cleanup code and reduce branches >> 2. Use copy_from_back to copy the matched bytes from the back output buffer > > What exactly is copy_from_back()? Is it like memmove()? If yes, have > you tried

Re: [PATCH 2/3] lib: zlib_inflate: improves decompression performance

2020-11-10 Thread Jann Horn
On Mon, Nov 9, 2020 at 8:27 PM wrote: > This patch does: > 1. Cleanup code and reduce branches > 2. Use copy_from_back to copy the matched bytes from the back output buffer What exactly is copy_from_back()? Is it like memmove()? If yes, have you tried using memmove() instead of the code added in

[PATCH 2/3] lib: zlib_inflate: improves decompression performance

2020-11-09 Thread zengzhaoxiu
From: Zhaoxiu Zeng This patch does: 1. Cleanup code and reduce branches 2. Use copy_from_back to copy the matched bytes from the back output buffer I tested on 5.8.18-300.fc33.x86_64. The performance of function zlib_inflate is improved by about 7%. If the CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS