Skip to content

Speed up transfer time of payload between worker and index page via transferable (shared array buffer) #92

@dpwspoon

Description

@dpwspoon

We should investigate using shared array buffer for transferring data across XHR. The expectation is that this would significantly speed up message delivery times for large responses.

Suggested steps, implement and test using large payload (1kb, .5 mb, 5mb, 25 mbs, bigger ?). The implementation should stream (not require a copy) the payload data across a shared array buffer.

Note, the current test backend system on this repo is VERY slow on sending large payloads over the WS stream library. This is caused by 4k chunking on the websocket frames AND MAYBE other things (TCP_NO_DELAY not being set). If we use the in repo backend for benchmarking then we should increase the WebSocket frame size to 64k.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions