Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Issue 2695873002: Prevent some string copies when sending Values to WebUI. (Closed)

Created:
3 years, 10 months ago by brettw
Modified:
3 years, 10 months ago
Reviewers:
jam
CC:
chromium-reviews, jam, darin-cc_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M base/json/json_writer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/webui/web_ui_impl.cc View 1 1 chunk +9 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
brettw
3 years, 10 months ago (2017-02-13 22:47:38 UTC) #3
jam
lgtm
3 years, 10 months ago (2017-02-13 23:15:39 UTC) #6
brettw
Removed another copy
3 years, 10 months ago (2017-02-14 22:10:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695873002/40001
3 years, 10 months ago (2017-02-14 22:11:22 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 23:54:12 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ee699e9ecfbaf7441d5ad5d71d2e...

Powered by Google App Engine
This is Rietveld 408576698