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

Issue 1687813002: Optimize Boundary Finding with Progressive Text Accumulation (Closed)

Created:
4 years, 10 months ago by Xiaocheng
Modified:
4 years, 10 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@text_accumulator_push
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Optimize Boundary Finding with Progressive Text Accumulation When searching for boundaries, we ensure that each time |copyTextTo()| is called, the length of text copied is bounded by the buffer capacity, and hence, avoiding copying everything of a large text node all at once. This is part of a bigger CL [1]. [1] https://codereview.chromium.org/1604783002 BUG=109587 TEST=n/a; no behavior change Committed: https://crrev.com/0fb56f3c6fa1f13cd17e714217900b73c1b75c3d Cr-Commit-Position: refs/heads/master@{#375565}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -20 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 3 4 chunks +31 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextBufferBase.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Xiaocheng
PTAL. Following the discussion thread of https://codereview.chromium.org/1678803002, this patch implements the idea of using TextBuffer's ...
4 years, 10 months ago (2016-02-16 07:23:29 UTC) #4
yosin_UTC9
lgtm w/ nit https://codereview.chromium.org/1687813002/diff/40001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/1687813002/diff/40001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode693 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:693: int itRemain = 0; |itRemain| is ...
4 years, 10 months ago (2016-02-16 07:55:13 UTC) #5
Xiaocheng
Thanks for the review. |remainingLength| looks a good enough name to me. I'll take it ...
4 years, 10 months ago (2016-02-16 12:39:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687813002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687813002/60001
4 years, 10 months ago (2016-02-16 12:40:05 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-16 14:20:41 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:52:35 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0fb56f3c6fa1f13cd17e714217900b73c1b75c3d
Cr-Commit-Position: refs/heads/master@{#375565}

Powered by Google App Engine
This is Rietveld 408576698