Re: [whatwg/streams] Could a byte stream read directly into and out of a SAB (w/o transfer)? (#757)

reillyeon left a comment (whatwg/streams#757)

Very impressive results! Just to be fair in the comparison I'm curious how the SAB solution compares to using `Blob.stream()` and BYOB to write into an `ArrayBuffer` that is then copied into WASM memory. 

I suspect that this would use much less memory because it's not creating garbage with every call to `FileReader.readAsArrayBuffer()` but would still do an extra copy and so would still be slower than the SAB solution.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/757#issuecomment-3190312109
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/757/3190312109@github.com>

Received on Friday, 15 August 2025 00:57:13 UTC