mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
In `io_uring` and `unix` IO backends, we can check if our buffers are sequential in memory and reduce the number of iovecs per call. Although this is highly unlikely to actually happen at the moment due to our buffer pool implementation. Later on, when #2419 is merged, we will be able to specifically request runs of contiguous buffers, so that our `writev` calls will (in the ideal case) be coalesced into a single `pwrite` or preferrably `WriteFixed` operation on the io_uring backend. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #2436