[Webkit-unassigned] [Bug 29909] [V8] Chromium's implementation of ScriptString is awful for XHR's responseText

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 29 18:58:34 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29909





--- Comment #1 from James Robinson <jamesr at chromium.org>  2009-09-29 18:58:34 PDT ---
Created an attachment (id=40340)
 --> (https://bugs.webkit.org/attachment.cgi?id=40340)
One possible ScriptString implementation for v8

This patch is a possible replacement for ScriptString.  It handles appends by
keeping a list of WebCore::String objects and only flattens to a contiguous
buffer when the character data is requested.  This impl requires a custom
V8ExternalStringResource implementation so that the .length property of the
string can be queried without forcing the entire buffer to be flat.

An alternative would be to copy the string straight into V8 as it arrives and
let it handle the cheap concatenation since it already has code to do this. 
This would require copying the string back out into WebCore on demand as well
as a change in the V8 interface to allow appending to a V8-controlled string.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list