Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.
This repository was 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

@fredemmott

Description

@fredemmott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions