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

Adding encoding into an extant buffer is not an expressibility issue -- one can always do a copy to express the same thing -- it is motivated purely by performance. It follows that if performance is our motivation, we should enable the *most* performant patterns possible, instead of only going half-way, and that means avoiding buffer view object allocations.

-- 
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-434689015

Received on Wednesday, 31 October 2018 13:35:55 UTC