DescriptionV8ScriptValueSerializer: Use PartitionAlloc for the buffer, and avoid copying it into a String.
This causes v8::ValueSerializer to use the buffer partition for its allocations, then
holds the result in a unique_ptr within the SerializedScriptValue. Removal of the String
alternative is expected to follow eventually.
PartitionAlloc has much more consistent cross-platform performance. In particular,
large performance issues with default malloc on Android are blocking this feature from
shipping at present.
BUG=148757
Committed: https://crrev.com/4a94f7a4a9055e7b919c4c3ef9604324c75a70f5
Cr-Commit-Position: refs/heads/master@{#432232}
Patch Set 1 #Patch Set 2 : misc #Patch Set 3 : mild streamlining #
Total comments: 11
Patch Set 4 : haraken review #Patch Set 5 : initialize SerializedScriptValue::m_dataBufferSize #
Created: 4 years, 1 month ago
Messages
Total messages: 22 (15 generated)
|