Re: [streams] Byte streams: write up design rationales and vision for how they are used/what they enable (#177)

Sorry for the delay on replying to this. It slipped off my to-do list somehow.

> Another point I wonder how we should deal with is, whether the partially consumed bytes in the large buffer should be considered as freed or not from backpressure point of view. If we cannot free the partially consumed region, it continues to have memory pressure. So, should we refrain from pulling?

I think we should be able to free the consumed region. Even in JavaScript you could ArrayBuffer.transfer to a smaller buffer which would let the GC collect the consumed part.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/177#issuecomment-93862651

Received on Thursday, 16 April 2015 23:38:41 UTC