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

Issue 462423004: Revert CL 117933003. Re-add resource speculative prefetching code. (Closed)

Created:
6 years, 4 months ago by Zhen Wang
Modified:
6 years, 3 months ago
CC:
chromium-reviews, shishir+watch_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, arv+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Revert CL 117933003. Re-add speculative resource prefetching code. https://codereview.chromium.org/117933003/ The speculative resource prefetching code was experimental code developed by shishir@. He found that it has little improvement on desktop Chrome (win). We though this should be beneficial to mobile browsers. After discussing with tburkard@ and kenjibaheux@, we decided to bring the code back and do more analysis on mobile devices. Reverting the patchset to re-add the code is the first step. The following design doc has discussed all related approaches and action items. https://docs.google.com/a/google.com/document/d/1ie3hu-zNNXvmTXm3aJAtKUGOh6nZfbNjA0aZE1bzzIg/edit?usp=sharing BUG=408399, 405690 Committed: https://crrev.com/825722d5939dc0832d124b70958501611e6a4628 Cr-Commit-Position: refs/heads/master@{#294899}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase and resolve conflict #

Patch Set 4 : rebase #

Patch Set 5 : work with RenderFrame instead of RenderView #

Patch Set 6 : #

Total comments: 60

Patch Set 7 : rebase and fix compile error #

Patch Set 8 : address Lei's comments #

Total comments: 4

Patch Set 9 : More fix to Lei's comments #

Patch Set 10 : rebase to fix patch failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5737 lines, -1 line) Patch
A chrome/browser/net/resource_prefetch_predictor_observer.h View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/net/resource_prefetch_predictor_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +202 lines, -0 lines 0 comments Download
M chrome/browser/predictors/predictor_database.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/predictors/predictor_database.cc View 1 2 3 8 chunks +18 lines, -1 line 0 comments Download
A chrome/browser/predictors/resource_prefetch_common.h View 1 2 3 4 5 6 7 8 1 chunk +116 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_common.cc View 1 2 3 4 5 6 7 8 1 chunk +245 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 3 4 5 6 7 8 1 chunk +314 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 6 7 8 1 chunk +1222 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_factory.h View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h View 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tables.h View 1 2 3 4 5 6 7 8 1 chunk +160 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 2 3 4 5 6 7 8 1 chunk +513 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +472 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +925 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher.h View 1 2 3 4 5 6 7 8 1 chunk +165 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher.cc View 1 2 3 4 5 6 7 8 1 chunk +240 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_manager.h View 1 2 3 4 5 6 7 8 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +135 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetcher_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +343 lines, -0 lines 0 comments Download
M chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/predictors/predictors.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/predictors/predictors.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/predictors/resource_prefetch_predictor.html View 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/resources/predictors/resource_prefetch_predictor.js View 1 2 3 4 5 6 7 8 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/predictors/predictors_handler.h View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/predictors/predictors_handler.cc View 3 chunks +77 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (2 generated)
Zhen Wang
ptal
6 years, 4 months ago (2014-08-17 22:14:46 UTC) #1
tburkard
lgtm
6 years, 4 months ago (2014-08-18 12:33:33 UTC) #2
shishir1
On 2014/08/18 12:33:33, tburkard wrote: > lgtm I dont see the code (IIRC it was ...
6 years, 4 months ago (2014-08-25 16:21:16 UTC) #3
Zhen Wang
> I dont see the code (IIRC it was in Prerender dir) where this service ...
6 years, 4 months ago (2014-08-25 16:34:51 UTC) #4
Zhen Wang
The CQ bit was checked by zhenw@chromium.org
6 years, 4 months ago (2014-08-25 16:35:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhenw@chromium.org/462423004/1
6 years, 4 months ago (2014-08-25 16:36:57 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-25 16:41:28 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-25 16:42:47 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/5850)
6 years, 4 months ago (2014-08-25 16:42:48 UTC) #9
Zhen Wang
The CQ bit was checked by zhenw@chromium.org
6 years, 4 months ago (2014-08-26 01:46:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhenw@chromium.org/462423004/20001
6 years, 4 months ago (2014-08-26 01:48:26 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-26 01:52:23 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 01:54:47 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/6026)
6 years, 4 months ago (2014-08-26 01:54:49 UTC) #14
Zhen Wang
The CQ bit was checked by zhenw@chromium.org
6 years, 4 months ago (2014-08-26 05:51:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhenw@chromium.org/462423004/40001
6 years, 4 months ago (2014-08-26 05:52:18 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-26 06:44:19 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 06:49:05 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6617)
6 years, 4 months ago (2014-08-26 06:49:06 UTC) #19
Zhen Wang
zhenw@chromium.org changed reviewers: + jam@chromium.org
6 years, 3 months ago (2014-08-26 16:44:20 UTC) #20
Zhen Wang
Hi Jam, Can you help to review this CL? The idea is to bring the ...
6 years, 3 months ago (2014-08-26 16:44:20 UTC) #21
jam
On 2014/08/26 16:44:20, Zhen Wang wrote: > Hi Jam, > > Can you help to ...
6 years, 3 months ago (2014-08-27 03:43:09 UTC) #22
Zhen Wang
> The reason that it was removed was that maintaining this code wasn't fee. If ...
6 years, 3 months ago (2014-08-27 04:28:31 UTC) #23
jam
On 2014/08/27 04:28:31, Zhen Wang wrote: > > The reason that it was removed was ...
6 years, 3 months ago (2014-08-27 16:46:36 UTC) #24
Zhen Wang
I have made it work with RenderFrame instead of RenderView. Notice that current version only ...
6 years, 3 months ago (2014-08-31 00:03:59 UTC) #25
Zhen Wang
Hi Jam, Can you take a look? Thanks! Best -Zhen On 2014/08/31 00:03:59, Zhen Wang ...
6 years, 3 months ago (2014-09-04 14:45:50 UTC) #26
Zhen Wang
Hi Jam, Any thoughts on the CL? Best -Zhen
6 years, 3 months ago (2014-09-08 17:21:52 UTC) #27
jam
sorry for the delay, I didn't see your earlier messages. adding thestig to do a ...
6 years, 3 months ago (2014-09-09 00:37:05 UTC) #29
Lei Zhang
General comments: - If we don't need this on the desktop, consider making the newly ...
6 years, 3 months ago (2014-09-09 03:32:20 UTC) #30
Zhen Wang
Thanks for the comments! jam: The data structures I refer to are the database tables ...
6 years, 3 months ago (2014-09-09 04:24:05 UTC) #31
Lei Zhang
On 2014/09/09 04:24:05, Zhen Wang wrote: > thestig: > I quickly went over the comments, ...
6 years, 3 months ago (2014-09-09 04:39:18 UTC) #32
Zhen Wang
Hi Lei, I have addressed your comments. ptal. By the way, the re-added code is ...
6 years, 3 months ago (2014-09-13 00:36:33 UTC) #33
Lei Zhang
So if this code won't be used on desktop, what's the binary size impact of ...
6 years, 3 months ago (2014-09-13 01:20:25 UTC) #34
Zhen Wang
On Ubuntu 12.04, I did release build of chrome with export GYP_DEFINES="clang=1 component=static_library goma=1 use_goma=1" ...
6 years, 3 months ago (2014-09-15 19:47:18 UTC) #35
Lei Zhang
lgtm, thanks. On 2014/09/15 19:47:18, Zhen Wang wrote: > On Ubuntu 12.04, I did release ...
6 years, 3 months ago (2014-09-15 20:12:58 UTC) #36
Zhen Wang
> 0.1% may not seem much, but every little bit helps. (For comparison, it took ...
6 years, 3 months ago (2014-09-15 20:51:35 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/462423004/180001
6 years, 3 months ago (2014-09-15 21:02:12 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:180001) as 5a46cd3921a3c16163d91aeec9982b41784de748
6 years, 3 months ago (2014-09-15 22:08:33 UTC) #40
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/825722d5939dc0832d124b70958501611e6a4628 Cr-Commit-Position: refs/heads/master@{#294899}
6 years, 3 months ago (2014-09-15 22:18:19 UTC) #41
nhiroki
6 years, 3 months ago (2014-09-16 04:56:16 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/577543002/ by nhiroki@chromium.org.

The reason for reverting is: This caused a bunch of memory leaks in following
tests:

- ResourcePrefetcherTest.TestPrefetcherFinishes
- ResourcePrefetcherTest.TestPrefetcherStopped

Linux Chromium OS ASan LSan Tests (3)
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20...

Linux ASan LSan Tests (2)
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Te....

Powered by Google App Engine
This is Rietveld 408576698