dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.96k stars 954 forks source link

Journal streamer pending_buf_ redundant allocations #4158

Open adiholden opened 1 day ago

adiholden commented 1 day ago

When calling JournalStreamer::Write if there is a write request in flight we resize the pendingbuf leading to redundant allocations and copies. Can we use iovec instead calling resize every time?