Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content

Avoid Tokio's non-blocking file system wrapper

Adam Reichold requested to merge (removed):blocking-fs-copies into main

To implement the AsyncWrite trait, Tokio's File type needs to copy the given buffer. Since we do not need compatability with this particular interface and usually already own our buffers, we can use spawn_blocking or where appropriate block_in_place to avoid the extra copies.

Merge request reports

Loading