Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

HSL IO performance: add native awaitables for looping operations like writeAllAsync #137

Open
fredemmott opened this issue May 27, 2020 · 0 comments

Comments

@fredemmott
Copy link
Contributor

e.g. writeAllAsync, copying between FDs

These can be implemented in pure hack, however given limitations of epoll, we currently do async IO in background threads - switching threads every time we go through the loop has a fair bit of overhead. A native awaitable could run the whole lot in a worker thread, and only re-enter the hack code once the entire operation has failed or is finished.

This is not needed for completeness, just a performance optimization.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant