]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: iostream-temp - Optimize writing many small writes
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 21 Oct 2025 10:33:56 +0000 (13:33 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 22 Oct 2025 08:23:23 +0000 (11:23 +0300)
commit0e5890dd0f3fe66fe64b510756e1a7fed85b2f46
tree303b02a9417d1ab81e585ddf788271c66456f25c
parent42900396472f821da6f94dc67f00d2e7be76d8d4
lib: iostream-temp - Optimize writing many small writes

There was no buffering for o_stream_send*() calls after the initial
in-memory buffer size was exceeded. Each one was immediately written to
disk.

This fixes inefficiencies at least with doveadm-server HTTP responses.
src/lib/iostream-temp.c
src/lib/iostream-temp.h
src/lib/test-iostream-temp.c