Re: XHR responseArrayBuffer attribute: suggestion to replace "asBlob" with "responseType"

25.10.2010, в 15:33, Boris Zbarsky написал(а):

>>  People are concerned that it would require keeping two copies of the
>> data around (raw bytes, and unicode text version) since it's unknown
>> up-front whether "responseText", or "responseArrayBuffer" will be
>> accessed.
> 
> Note that Gecko does exactly that, and we've seen no problems with it...  It's very rare to have really large XHR bodies, for what it's worth.


That may become more common when people start downloading arbitrary files, and storing them to disk with FileWriter. But even years ago, we've been getting performance bugs forcing us to ensure responseText didn't have to be copied for JavaScript access.

- WBR, Alexey Proskuryakov

Received on Monday, 25 October 2010 22:42:56 UTC