On Sep 27, 2010, at 6:37 PM, Maciej Stachowiak wrote:

> 
> On Sep 27, 2010, at 3:19 PM, Michael Nordman wrote:
> 
>> Webkit's XHR currently does not keep two copies of the data that I can see. 
>> I think we should avoid that.
> 
> We could keep the raw data around, which hopefully is directly usable as an 
> ArrayBuffer backing store, and only translate it to text format when/if the 
> client requests responseText. 

Yes, the raw data should be usable without translation in an ArrayBuffer. But 
we'd still need to make a copy of the raw bits when a new ArrayBuffer is 
created via responseArrayBuffer(), because that object is mutable.

-----
~Chris
cmar...@apple.com




_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to