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

Issue 7834006: Consolidate key, primary key, value cursor messages. (Closed)

Created:
9 years, 3 months ago by dgrogan
Modified:
9 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, jsbell
Visibility:
Public.

Description

Consolidate key, primary key, value cursor messages. When opening or advancing a cursor, send key, primary key, and value to the renderer in the cursor open message. Remove separate messages that retrieve them synchronously. This improves the readSeq benchmark by ~65%. This is the chrome side patch. It potentially needs the webkit patch at https://bugs.webkit.org/show_bug.cgi?id=69131 to go in first. BUG= TEST=new-run-webkit-tests --debug --chromium storage/indexeddb; loaded each cursor test into chrome manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105019

Patch Set 1 #

Patch Set 2 : remove unused messages #

Total comments: 5

Patch Set 3 : simplified version #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -40 lines) Patch
M content/browser/in_process_webkit/indexed_db_callbacks.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_dispatcher_host.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/indexed_db_messages.h View 1 2 2 chunks +5 lines, -17 lines 0 comments Download
M content/renderer/indexed_db_dispatcher.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/indexed_db_dispatcher.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/renderer_webidbcursor_impl.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M content/renderer/renderer_webidbcursor_impl.cc View 1 2 3 2 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
dgrogan
Patch set 2 should say "remove unused _methods_". This one isn't a big deal, but ...
9 years, 3 months ago (2011-09-02 23:35:47 UTC) #1
michaeln
http://codereview.chromium.org/7834006/diff/16/content/renderer/indexed_db_dispatcher.cc File content/renderer/indexed_db_dispatcher.cc (right): http://codereview.chromium.org/7834006/diff/16/content/renderer/indexed_db_dispatcher.cc#newcode387 content/renderer/indexed_db_dispatcher.cc:387: void IndexedDBDispatcher::OnSuccessSerializedScriptValue( OnSuccessOpenCursor() is the callback for the various ...
9 years, 3 months ago (2011-09-04 23:08:15 UTC) #2
dgrogan
Michael, Could you take another look? The webkit patch is here https://bugs.webkit.org/show_bug.cgi?id=67663 http://codereview.chromium.org/7834006/diff/16/content/renderer/indexed_db_dispatcher.cc File content/renderer/indexed_db_dispatcher.cc ...
9 years, 3 months ago (2011-09-07 01:15:19 UTC) #3
michaeln
> The webkit patch stores key, primary key, and value in the WebCore::IDBCursor > frontend ...
9 years, 3 months ago (2011-09-07 03:56:55 UTC) #4
hans
Now that I see the WebKit side to, I was expecting the key and value ...
9 years, 3 months ago (2011-09-07 16:26:34 UTC) #5
michaeln
> Maybe i'm misreading things, or maybe my "expectation" is incorrect? After looking more closely, ...
9 years, 3 months ago (2011-09-07 22:59:57 UTC) #6
dgrogan
On Wed, Sep 7, 2011 at 3:59 PM, <michaeln@chromium.org> wrote: > Maybe i'm misreading things, ...
9 years, 3 months ago (2011-09-07 23:14:10 UTC) #7
michaeln
> So, I propose that I table this patch until one that reuses at least ...
9 years, 3 months ago (2011-09-08 19:16:31 UTC) #8
dgrogan
On 2011/09/07 23:14:10, dgrogan wrote: > On Wed, Sep 7, 2011 at 3:59 PM, <mailto:michaeln@chromium.org> ...
9 years, 2 months ago (2011-09-28 19:19:04 UTC) #9
michaeln
> > > After looking more closely, sure enough, there is a new javascript 'cursor' ...
9 years, 2 months ago (2011-09-28 23:14:50 UTC) #10
dgrogan
I reworked this to be similar to what you guys were describing, where we stash ...
9 years, 2 months ago (2011-09-30 07:03:29 UTC) #11
michaeln
lgtm To be clear, to go forwards on performance, we're going backwards a little in ...
9 years, 2 months ago (2011-09-30 21:55:00 UTC) #12
dgrogan
On 2011/09/30 21:55:00, michaeln wrote: > lgtm > > To be clear, to go forwards ...
9 years, 2 months ago (2011-09-30 22:56:23 UTC) #13
dgrogan
On 2011/09/30 22:56:23, dgrogan wrote: > On 2011/09/30 21:55:00, michaeln wrote: > > lgtm > ...
9 years, 2 months ago (2011-09-30 23:44:37 UTC) #14
hans
This is ready to land now, right?
9 years, 2 months ago (2011-10-10 15:23:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/7834006/13001
9 years, 2 months ago (2011-10-11 04:01:18 UTC) #16
commit-bot: I haz the power
Can't apply patch for file content/renderer/renderer_webidbcursor_impl.cc. While running patch -p1 --forward --force; patching file content/renderer/renderer_webidbcursor_impl.cc ...
9 years, 2 months ago (2011-10-11 04:01:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/7834006/29001
9 years, 2 months ago (2011-10-11 08:04:35 UTC) #18
commit-bot: I haz the power
Presubmit check for 7834006-29001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-10-11 08:04:41 UTC) #19
dgrogan
jam, could you look this over as an owner of content/renderer and content/common ? Thanks.
9 years, 2 months ago (2011-10-11 08:05:51 UTC) #20
jam
lgtm
9 years, 2 months ago (2011-10-11 20:29:30 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/7834006/29001
9 years, 2 months ago (2011-10-12 00:05:32 UTC) #22
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 05:23:43 UTC) #23
Change committed as 105019

Powered by Google App Engine
This is Rietveld 408576698