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

Issue 2601313002: [MD settings] stream i18n replacement without large accumulation buffer (Closed)

Created:
3 years, 11 months ago by dschuyler
Modified:
3 years, 11 months ago
Reviewers:
Dan Beam, mmenke
CC:
chromium-reviews, jam, darin-cc_chromium.org, Dan Beam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD settings] stream i18n replacement without large accumulation buffer This CL processes the i18n source stream data in smaller pieces so that the data is not accumulated (buffered). This avoids the potential for the i18n streaming use too much memory. BUG=677555 Committed: https://crrev.com/3ba7a97bb01f0838d0d994f768a8af2f931afa16 Cr-Commit-Position: refs/heads/master@{#441241}

Patch Set 1 : sacrificing 0.9 msec for simplicity (vs. Patch Set 2) #

Total comments: 12

Patch Set 2 : Faster, more complex version (vs. Patch Set 1) #

Patch Set 3 : review changes #

Total comments: 8

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -27 lines) Patch
M content/browser/webui/i18n_source_stream.h View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/webui/i18n_source_stream.cc View 1 2 3 2 chunks +21 lines, -16 lines 0 comments Download
M content/browser/webui/i18n_source_stream_unittest.cc View 1 2 3 3 chunks +17 lines, -6 lines 0 comments Download

Messages

Total messages: 45 (35 generated)
dschuyler
The two patches (#1 and #2) are alternate versions of this CL. We can go ...
3 years, 11 months ago (2016-12-29 23:27:26 UTC) #21
mmenke
I prefer the first one - second seems overkill, and too closely mirrors internal code ...
3 years, 11 months ago (2017-01-03 16:47:16 UTC) #24
dschuyler
https://codereview.chromium.org/2601313002/diff/80001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2601313002/diff/80001/content/browser/webui/i18n_source_stream.cc#newcode48 content/browser/webui/i18n_source_stream.cc:48: size_t pos = input_.find_last_of("$}"); On 2017/01/03 16:47:16, mmenke wrote: ...
3 years, 11 months ago (2017-01-03 20:37:34 UTC) #27
mmenke
LGTM! https://codereview.chromium.org/2601313002/diff/140001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2601313002/diff/140001/content/browser/webui/i18n_source_stream.cc#newcode51 content/browser/webui/i18n_source_stream.cc:51: size_t pos = input_.find_last_of("$} \t\f\v\r\n"); Are spaces and ...
3 years, 11 months ago (2017-01-03 20:47:32 UTC) #28
dschuyler
https://codereview.chromium.org/2601313002/diff/140001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2601313002/diff/140001/content/browser/webui/i18n_source_stream.cc#newcode51 content/browser/webui/i18n_source_stream.cc:51: size_t pos = input_.find_last_of("$} \t\f\v\r\n"); On 2017/01/03 20:47:32, mmenke ...
3 years, 11 months ago (2017-01-03 21:51:40 UTC) #33
mmenke
Thanks for doing this! (And still LGTM)
3 years, 11 months ago (2017-01-03 21:53:55 UTC) #34
Dan Beam
lgtm
3 years, 11 months ago (2017-01-03 22:06:56 UTC) #36
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/2601313002/160001
3 years, 11 months ago (2017-01-03 23:07:04 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:160001)
3 years, 11 months ago (2017-01-03 23:12:15 UTC) #43
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 23:16:09 UTC) #45
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3ba7a97bb01f0838d0d994f768a8af2f931afa16
Cr-Commit-Position: refs/heads/master@{#441241}

Powered by Google App Engine
This is Rietveld 408576698