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

Issue 1369713002: Avoid creating duplicate Range objects when handling misspellings. (Closed)

Created:
5 years, 2 months ago by sof
Modified:
5 years, 2 months ago
Reviewers:
haraken, yosin_UTC9
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid creating duplicate Range objects when handling misspellings. When iterating over the input text and marking its misspellings, avoid creating duplicate Range objects from the check & paragraph EphemeralRanges if they're identical. This addresses a performance regression on trunk (non-Oilpan) for blink_perf.dom.textarea-edit introduced by the EphemeralRange-switching https://codereview.chromium.org/1331893002 R=haraken BUG=530740 Committed: https://crrev.com/70e3de94ab4b4a6ce2e9009f593f89aaf6eafdad Cr-Commit-Position: refs/heads/master@{#351001}

Patch Set 1 #

Total comments: 6

Patch Set 2 : push Range de-dup into SpellCheckRequester::create() #

Total comments: 2

Patch Set 3 : add SpellCheckRequest::dispose() #

Patch Set 4 : compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -18 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp View 1 2 2 chunks +25 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
sof
please take a look. This addresses the non-Oilpan regression for textarea-edit. Oilpan performance improves also, ...
5 years, 2 months ago (2015-09-25 12:34:08 UTC) #2
haraken
On 2015/09/25 12:34:08, sof wrote: > please take a look. > > This addresses the ...
5 years, 2 months ago (2015-09-25 12:34:50 UTC) #3
sof
On 2015/09/25 12:34:50, haraken wrote: > On 2015/09/25 12:34:08, sof wrote: > > please take ...
5 years, 2 months ago (2015-09-25 12:38:38 UTC) #4
yosin_UTC9
Good catch! We can make spell check cleaner. https://codereview.chromium.org/1369713002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/1369713002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode520 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:520: const ...
5 years, 2 months ago (2015-09-26 04:56:00 UTC) #5
sof
https://codereview.chromium.org/1369713002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/1369713002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode520 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:520: const EphemeralRange checkRange = fullParagraphToCheck.checkingRange(); On 2015/09/26 04:56:00, Yosi_UTC9 ...
5 years, 2 months ago (2015-09-26 06:59:44 UTC) #6
yosin_UTC9
Sorry for late response... https://codereview.chromium.org/1369713002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp (right): https://codereview.chromium.org/1369713002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp#newcode222 third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp:222: RefPtrWillBeRawPtr<Range> checkingRange = m_processingRequest->checkingRange(); nit: ...
5 years, 2 months ago (2015-09-26 15:46:06 UTC) #7
sof
https://codereview.chromium.org/1369713002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp (right): https://codereview.chromium.org/1369713002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp#newcode222 third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp:222: RefPtrWillBeRawPtr<Range> checkingRange = m_processingRequest->checkingRange(); On 2015/09/26 15:46:06, Yosi_UTC9 wrote: ...
5 years, 2 months ago (2015-09-26 16:18:30 UTC) #8
yosin_UTC9
lgtm Thanks for clean up!
5 years, 2 months ago (2015-09-26 16:56:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1369713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1369713002/60001
5 years, 2 months ago (2015-09-26 16:56:48 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-09-26 18:08:34 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-09-26 18:09:50 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/70e3de94ab4b4a6ce2e9009f593f89aaf6eafdad
Cr-Commit-Position: refs/heads/master@{#351001}

Powered by Google App Engine
This is Rietveld 408576698