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

Issue 1504033007: Move Indexed DB from dedicated thread to task scheduler (Closed)

Created:
5 years ago by jsbell
Modified:
3 years, 6 months ago
Reviewers:
gab, jam, dmurph
CC:
chromium-reviews, wjmaclean, jam, darin-cc_chromium.org, cmumford, dgrogan, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@timer
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Indexed DB from dedicated thread to task scheduler Back in the mists of time, Indexed DB in the browser ran on a "webkit thread". We slimmed that down to being a dedicated IDB thread, but it's now possible to ditch that and use the task scheduler APIs, e.g. to avoid thrashing. BUG=552552 Review-Url: https://codereview.chromium.org/1504033007 Cr-Commit-Position: refs/heads/master@{#478726} Committed: https://chromium.googlesource.com/chromium/src/+/db76a97fd74c4ee0e5f4c379a1289ee0f44ed7ea

Patch Set 1 #

Patch Set 2 : Update to TaskScheduler, modern sequence goodness #

Total comments: 1

Patch Set 3 : Rebased #

Total comments: 18

Patch Set 4 : Review feedback #

Patch Set 5 : Tweak traits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -218 lines) Patch
M content/browser/browser_main_loop.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 chunks +0 lines, -13 lines 0 comments Download
M content/browser/indexed_db/cursor_impl.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/indexed_db/cursor_impl.cc View 1 2 7 chunks +17 lines, -17 lines 0 comments Download
M content/browser/indexed_db/database_impl.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/indexed_db/database_impl.cc View 1 46 chunks +112 lines, -111 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_browsertest.cc View 1 4 chunks +8 lines, -8 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 1 16 chunks +18 lines, -18 lines 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_callbacks.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_callbacks.cc View 1 5 chunks +7 lines, -7 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 9 chunks +13 lines, -13 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 2 chunks +11 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (19 generated)
jsbell
https://codereview.chromium.org/1504033007/diff/20001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1504033007/diff/20001/content/browser/storage_partition_impl.cc#newcode477 content/browser/storage_partition_impl.cc:477: scoped_refptr<base::SequencedTaskRunner> idb_task_runner = It would be nice to push ...
3 years, 6 months ago (2017-06-06 00:31:29 UTC) #1
jsbell
gab@ - could you please sanity check the thread->sequence changes? dmurph@ - can you please ...
3 years, 6 months ago (2017-06-08 20:32:39 UTC) #6
jam
lgtm, nice
3 years, 6 months ago (2017-06-09 06:08:53 UTC) #10
dmurph
https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc File content/browser/indexed_db/indexed_db_context_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc#newcode117 content/browser/indexed_db/indexed_db_context_impl.cc:117: task_runner_(task_runner) { std::move(task_runner) https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc#newcode483 content/browser/storage_partition_impl.cc:483: ...
3 years, 6 months ago (2017-06-09 19:15:08 UTC) #11
dmurph
3 years, 6 months ago (2017-06-09 19:17:01 UTC) #12
jsbell
https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc File content/browser/indexed_db/indexed_db_context_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc#newcode117 content/browser/indexed_db/indexed_db_context_impl.cc:117: task_runner_(task_runner) { On 2017/06/09 19:15:07, dmurph wrote: > std::move(task_runner) ...
3 years, 6 months ago (2017-06-09 20:50:31 UTC) #13
dmurph
On 2017/06/09 20:50:31, jsbell wrote: > https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc > File content/browser/indexed_db/indexed_db_context_impl.cc (right): > > https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc#newcode117 > ...
3 years, 6 months ago (2017-06-09 20:51:20 UTC) #14
gab
Nice \o/!! https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc File content/browser/indexed_db/indexed_db_context_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc#newcode117 content/browser/indexed_db/indexed_db_context_impl.cc:117: task_runner_(task_runner) { On 2017/06/09 20:50:30, jsbell wrote: ...
3 years, 6 months ago (2017-06-12 15:13:08 UTC) #15
jsbell
https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc File content/browser/indexed_db/indexed_db_context_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/indexed_db/indexed_db_context_impl.cc#newcode117 content/browser/indexed_db/indexed_db_context_impl.cc:117: task_runner_(task_runner) { On 2017/06/12 15:13:07, gab wrote: > On ...
3 years, 6 months ago (2017-06-12 16:19:03 UTC) #17
gab
https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc#newcode483 content/browser/storage_partition_impl.cc:483: base::TaskPriority::BACKGROUND, On 2017/06/12 16:19:02, jsbell wrote: > On 2017/06/12 ...
3 years, 6 months ago (2017-06-12 16:49:12 UTC) #19
jsbell
Thanks gab! https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc#newcode483 content/browser/storage_partition_impl.cc:483: base::TaskPriority::BACKGROUND, Okay - went with USER_VISIBLE (The ...
3 years, 6 months ago (2017-06-12 17:45:31 UTC) #24
gab
lgtm https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1504033007/diff/40001/content/browser/storage_partition_impl.cc#newcode483 content/browser/storage_partition_impl.cc:483: base::TaskPriority::BACKGROUND, On 2017/06/12 17:45:31, jsbell wrote: > Okay ...
3 years, 6 months ago (2017-06-12 17:59:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1504033007/80001
3 years, 6 months ago (2017-06-12 19:48:27 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 19:53:51 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/db76a97fd74c4ee0e5f4c379a128...

Powered by Google App Engine
This is Rietveld 408576698