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

Issue 304273003: Simplify & optimize StringImpl::replace(UChar, UChar) (Closed)

Created:
6 years, 6 months ago by Mikhail
Modified:
6 years, 6 months ago
Reviewers:
tkent, Erik Corry, eseidel
CC:
blink-reviews, blink-reviews-wtf_chromium.org, Mikhail, abarth-chromium, eseidel, Erik Corry, tkent, Chris Evans
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Simplify & optimize StringImpl::replace(UChar, UChar) StringImpl::replace(UChar, UChar) is mentioned as one of the hot spots by the Intel VTune Amplifier profile when running the 'textarea-dom.html' performance test. StringImpl::replace(UChar, UChar) is optimized (and simplified) by using 'StringImpl::find' method instead of manual traversing the internal buffer and checking 'is8Bit' property value on each iteration. This changes gives approx 2.25% improvement of the average 'textarea-dom.html' performance test results (linux desktop x64, GCC 4.6.3, release content_shell build with enabled 'linux_dump_symbols' flag). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175198

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -11 lines) Patch
M Source/wtf/text/StringImpl.cpp View 1 chunk +3 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mikhail
PTAL
6 years, 6 months ago (2014-05-30 14:09:31 UTC) #1
eseidel
lgtm Makes sense.
6 years, 6 months ago (2014-05-30 17:30:22 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/304273003/1
6 years, 6 months ago (2014-05-30 17:32:10 UTC) #3
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-30 18:56:15 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 19:38:25 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/6550)
6 years, 6 months ago (2014-05-30 19:38:25 UTC) #6
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 6 months ago (2014-05-31 13:29:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/304273003/1
6 years, 6 months ago (2014-05-31 13:29:25 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 20:19:35 UTC) #9
Message was sent while issue was closed.
Change committed as 175198

Powered by Google App Engine
This is Rietveld 408576698