[Webkit-unassigned] [Bug 105186] V8 SerializedScriptValue assignment is expensive

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 7 21:01:28 PST 2013


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


noel gordon <noel.gordon at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noel.gordon at gmail.com




--- Comment #1 from noel gordon <noel.gordon at gmail.com>  2013-02-07 21:03:36 PST ---
(In reply to comment #0)

> While there, the whole V8 SSV parser/serializer uses String as its interface, which is really broken simply from a code perspective because a String is a buffer of 16-bit characters, but the parser/serializer internally just deals with a stream of bytes.

It's also broken from a performance perspective-- lots of extra data copying going on due to String, compared with the JSC SSV implementation.

Internally in the V8 SSV, the "stream of bytes" you mention is a WTF:Vector.  Exposing the SSV data to users is via String, as you note, means conversion from Vector->String first, but then the String is exposed on the API with String.isolatedCopy().   Yeap, that's yet another complete copy of the String data.

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