Re: [whatwg/streams] Synchronous WritableStream Writer to avoid heap allocations from Promises returned by WritableStreamDefaultWriter's write (Issue #1276)

I can confirm that the promises have an effect. I went ahead & implemented a synchronous buffered write using `ArrayBuffer`, `Uint8Array`, & a write queue. I was able to complete the process while limiting memory usage.

This buffered synchronous write is about 10x slower than Nodejs's Writer write approach.

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

Message ID: <whatwg/streams/issues/1276/1519111479@github.com>

Received on Sunday, 23 April 2023 17:03:33 UTC