89a9a50497
This is the first in a series of patches to eliminate memcpy ops in the comp/decomp paths. Currently the lib uses 2 scratch buffers and copies all data in and out of them to the user buffers following a comp/decomp. This patch replaces the memcpy in one of the paths by constructing an iovec array that points to a combination of the scratch buffer and user buffer so that user data decompresses directly into the user buffer and any data in the chunk that isn't needed by the user will be sent to the scratch buffer. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: Ib1956875729a82d218527bc81795f750d1df2b89 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459662 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
Makefile | ||
reduce.c |