Re: [whatwg/encoding] TextEncoder#encode - write to existing Uint8Array (#69)

In theory, if they make an appropriate over-reservation via `str.length`, they could avoid it in all cases.  Optimizing away tuple returns is also theoretically possible in wasm (using multiple return values), but somewhat more involved to do that optimization in JS.

-- 
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/69#issuecomment-434720644

Received on Wednesday, 31 October 2018 15:03:31 UTC