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

Issue 1595103007: TemplateURL Performance - don't call replace search terms (Closed)

Created:
4 years, 11 months ago by Mark P
Modified:
4 years, 10 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, justincohen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TemplateURL Performance - don't call replace search terms That's a heavy function to call. I removed the call. The only thing it was being used for apparently was to get the port. Frankly, I don't see much importance in checking the port of search engines, but I added port_ and a cached internal variable to maintain this support and entirely removed the heavy call. For reference, the port line was part of a large change https://chromium.googlesource.com/chromium/src/+/5b30787532fe44ff67e29fbbedfb1781663a4f06%5E%21/#F8 for which there was no motivating discussion about the need to check ports. I guess there's no harm in it though. BUG= Committed: https://crrev.com/93e29f7d3258329fcfd54808b8785168e9271ad6 Cr-Commit-Position: refs/heads/master@{#371851}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove unnecessary block of code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -16 lines) Patch
M components/search_engines/template_url.h View 1 chunk +3 lines, -2 lines 0 comments Download
M components/search_engines/template_url.cc View 1 4 chunks +5 lines, -14 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Mark P
Peter, Please take a look at your leisure. thanks, mark
4 years, 11 months ago (2016-01-19 20:06:43 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/1595103007/diff/1/components/search_engines/template_url.cc File components/search_engines/template_url.cc (right): https://codereview.chromium.org/1595103007/diff/1/components/search_engines/template_url.cc#newcode778 components/search_engines/template_url.cc:778: search_term_key_location_ = url::Parsed::QUERY; While you're touching this stuff, ...
4 years, 11 months ago (2016-01-20 01:42:56 UTC) #4
Mark P
https://codereview.chromium.org/1595103007/diff/1/components/search_engines/template_url.cc File components/search_engines/template_url.cc (right): https://codereview.chromium.org/1595103007/diff/1/components/search_engines/template_url.cc#newcode778 components/search_engines/template_url.cc:778: search_term_key_location_ = url::Parsed::QUERY; On 2016/01/20 01:42:56, Peter Kasting wrote: ...
4 years, 11 months ago (2016-01-20 05:18:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1595103007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1595103007/20001
4 years, 11 months ago (2016-01-20 05:19:20 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/10194)
4 years, 11 months ago (2016-01-20 05:50:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1595103007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1595103007/20001
4 years, 11 months ago (2016-01-20 18:19:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1595103007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1595103007/20001
4 years, 10 months ago (2016-01-27 19:12:07 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-01-27 20:09:35 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-01-27 20:10:47 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/93e29f7d3258329fcfd54808b8785168e9271ad6
Cr-Commit-Position: refs/heads/master@{#371851}

Powered by Google App Engine
This is Rietveld 408576698