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

Issue 104663007: IndexedDB: Optimize IDBCursor.advance() if it occurs within prefetched range (Closed)

Created:
7 years ago by jsbell
Modified:
7 years ago
Reviewers:
alecflett
CC:
chromium-reviews, jsbell, jam, alecflett, joi+watch-content_chromium.org, darin-cc_chromium.org, cmumford, dgrogan
Visibility:
Public.

Description

IndexedDB: Optimize IDBCursor.advance() if it occurs within prefetched range To reduce the IPC overhead, repeated IDBCursor.continue() calls trigger pre-fetching where multiple values are fetched at once. As long as only simple continue() calls are made, the pre-fetch cache can be used to service them. Other calls invalidate the cache. IDBCursor.advance() is like a continue() call that skips over values; it is safe to use the cache as long as it is skipping within the pre-fetched range, so do so. (TBR for a unittest 'friend' change) TBR=jam Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242045

Patch Set 1 #

Patch Set 2 : Added unit test #

Total comments: 2

Patch Set 3 : Indentation fix #

Patch Set 4 : Rebased #

Patch Set 5 : Cast an enum in an EXPECT to placate MSVC #

Patch Set 6 : Will appengine like this? #

Patch Set 7 : One more cast #

Total comments: 2

Patch Set 8 : Added comments about virtual usage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -37 lines) Patch
M content/child/indexed_db/indexed_db_dispatcher.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -3 lines 0 comments Download
M content/child/indexed_db/webidbcursor_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/indexed_db/webidbcursor_impl.cc View 1 2 3 3 chunks +30 lines, -10 lines 0 comments Download
M content/child/indexed_db/webidbcursor_impl_unittest.cc View 1 2 3 4 5 6 8 chunks +110 lines, -23 lines 0 comments Download
M content/child/thread_safe_sender.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
jsbell
alecflett@ - please take a look? https://codereview.chromium.org/104663007/diff/20001/content/child/indexed_db/proxy_webidbcursor_impl.cc File content/child/indexed_db/proxy_webidbcursor_impl.cc (right): https://codereview.chromium.org/104663007/diff/20001/content/child/indexed_db/proxy_webidbcursor_impl.cc#newcode140 content/child/indexed_db/proxy_webidbcursor_impl.cc:140: while (count > ...
7 years ago (2013-12-12 00:18:44 UTC) #1
alecflett
lgtm lgtm with one suggestion https://codereview.chromium.org/104663007/diff/20001/content/child/indexed_db/proxy_webidbcursor_impl.cc File content/child/indexed_db/proxy_webidbcursor_impl.cc (right): https://codereview.chromium.org/104663007/diff/20001/content/child/indexed_db/proxy_webidbcursor_impl.cc#newcode140 content/child/indexed_db/proxy_webidbcursor_impl.cc:140: while (count > 1) ...
7 years ago (2013-12-19 00:41:38 UTC) #2
jsbell
https://codereview.chromium.org/104663007/diff/120001/content/child/indexed_db/indexed_db_dispatcher.h File content/child/indexed_db/indexed_db_dispatcher.h (right): https://codereview.chromium.org/104663007/diff/120001/content/child/indexed_db/indexed_db_dispatcher.h#newcode85 content/child/indexed_db/indexed_db_dispatcher.h:85: virtual void RequestIDBCursorAdvance(unsigned long count, On 2013/12/19 00:41:39, alecflett ...
7 years ago (2013-12-19 18:31:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/104663007/140001
7 years ago (2013-12-19 18:32:47 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=42292
7 years ago (2013-12-19 18:49:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/104663007/140001
7 years ago (2013-12-19 19:04:47 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=108197
7 years ago (2013-12-20 00:23:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/104663007/140001
7 years ago (2013-12-20 00:31:24 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-20 08:53:15 UTC) #9
Message was sent while issue was closed.
Change committed as 242045

Powered by Google App Engine
This is Rietveld 408576698