Re: [whatwg/streams] "Set totalSize to totalSize + pair.[[size]]." (#582)

Thanks @isonmad. I hadn't realised the difference was observable.

However, we can't implement it as adding the numbers every time because of the performance issue. Either we keep a running count or we do something cleverer to deal with the lack of precision issue you mentioned.

For example, we could keep a running count but recalculate it every time removing a chunk results in the number of remaining chunks being a power of two. However, that would be very janky.

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

Received on Tuesday, 17 January 2017 04:12:59 UTC