- From: Adam Rice <notifications@github.com>
- Date: Thu, 09 Feb 2017 00:55:40 -0800
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 February 2017 08:56:14 UTC
I think if we had a detach API that would encourage implementations to use this "hold a reference to the original buffer" implementation style, which just seems like a bad idea: ```javascript doSomethingWithText(decoder.decode(huge200MBbuffer, {stream: true})); await goAwayAndHaveACupOfCoffee(); ``` Backtracking to the start of the character when it is split may be a good implementation strategy, but in the worst case you just have to copy 3 bytes into scratch space to avoid holding the buffer around. -- 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/encoding/issues/92#issuecomment-278582843
Received on Thursday, 9 February 2017 08:56:14 UTC