W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > November 2020

Re: [webrtc-insertable-streams] Optimizing encoded frame buffer allocation and memory copies (#49)

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Mon, 30 Nov 2020 19:40:10 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-735998694-1606765209-sysbot+gh@w3.org>
For the readable stream, if you make it a readable byte stream, then you get all the reduced-copy mechanisms automatically.

For writable stream, you could transfer the array buffer the moment it is written to the underlying sink, which then allows the browser code to take ownership of the underlying data and use it directly. For this, you don't need the (mostly-defunct) https://github.com/domenic/proposal-arraybuffer-transfer, which is about exposing the primitive to JavaScript. Instead, you can do it on a spec/implementation level, using https://streams.spec.whatwg.org/#transfer-array-buffer

GitHub Notification of comment by domenic
Please view or discuss this issue at https://github.com/w3c/webrtc-insertable-streams/issues/49#issuecomment-735998694 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 30 November 2020 19:40:12 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:52 UTC