DescriptionPrevent some string copies when sending Values to WebUI.
WebUI::GetJavascriptCall is called with large data structures sometimes, which
serialize to large JSON strings. The previous "operator +" style code generated
large intermediate temporaries which can be easily avoided.
Added a clarifying comment to the JSON writer.
Review-Url: https://codereview.chromium.org/2695873002
Cr-Commit-Position: refs/heads/master@{#450516}
Committed: https://chromium.googlesource.com/chromium/src/+/ee699e9ecfbaf7441d5ad5d71d2e7f5db15afde7
Patch Set 1 #Patch Set 2 : Removed another copy #
Messages
Total messages: 16 (11 generated)
|