Description
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:
-
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).
-
Handoffs between JS and WebAssembly also result in a memory copy.
-
Another memory copy may occur when using a Transferrable Stream.
-
More memory copies can occur when rendering video if zero-copy rasterizer flags are not enabled.