diff options
author | Jussi Kivilinna <[email protected]> | 2022-02-12 19:31:47 +0000 |
---|---|---|
committer | Jussi Kivilinna <[email protected]> | 2022-03-08 18:03:03 +0000 |
commit | b96eb6f08d1df86fc8578133e0a16566c988e37d (patch) | |
tree | 5dc62fd8811c3029acc6f2422eb220b55e658c09 /g10/compress.c | |
parent | iobuf: add zerocopy optimization for iobuf_read (diff) | |
download | gnupg-b96eb6f08d1df86fc8578133e0a16566c988e37d.tar.gz gnupg-b96eb6f08d1df86fc8578133e0a16566c988e37d.zip |
iobuf: add zerocopy optimization for iobuf_write
* common/iobuf.c (filter_flush): Use 'iobuf->e_d' if configured.
(iobuf_write): Configure 'iobuf->e_d' for 'filter_flush' if
'iobuf->d.buf' is empty and external buffer is larger than threshold.
--
Zero-copy operation in iobuf_write() and filter_flush() allow bypassing
'iobuf->d.buf' for greater performance. This mainly helps OCB
performance where additional memory copies through iobuf stack
can take significant portion of program time.
GnuPG-bug-id: T5828
Signed-off-by: Jussi Kivilinna <[email protected]>
Diffstat (limited to 'g10/compress.c')
0 files changed, 0 insertions, 0 deletions