Skip to content

Memory copies #93

Open
Open
@aboba

Description

@aboba

In the presentation on "Machine Learning and Web Media" , reference is made to the need for efficiency. Today machine learning applications operating within the browser media pipeline will trigger many additional memory copies compared with native applications due to the following considerations:

  1. Although QUIC is implemented in user space and there are zero copy implementations, currently browser implementations copy memory when moving data between C++ and Javascript. Copies are not eliminated by use of BYOB readers/writers in WHATWG streams (e.g. data is not written or read directly from the provided buffers).

  2. Handoffs between JS and WebAssembly also result in a memory copy.

  3. Another memory copy may occur when using a Transferrable Stream.

  4. More memory copies can occur when rendering video if zero-copy rasterizer flags are not enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Discussion topicTopic discussed at the workshopOpportunities and ChallengesOpportunities and Challenges of Browser-Based Machine LearningWeb Platform FoundationsWeb Platform Foundations for Machine Learning

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions