diff options
author | jsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-22 21:36:45 +0000 |
---|---|---|
committer | jsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-22 21:36:45 +0000 |
commit | 3a193c0b2a67bbe1feb9747fb243db5c92828773 (patch) | |
tree | 44822ed1e15ba440aa8874598b90e1ad3720d97d /content/common/indexed_db | |
parent | 527caa6a6edf1933d656de8cf510e3ea4055314e (diff) | |
download | chromium_src-3a193c0b2a67bbe1feb9747fb243db5c92828773.zip chromium_src-3a193c0b2a67bbe1feb9747fb243db5c92828773.tar.gz chromium_src-3a193c0b2a67bbe1feb9747fb243db5c92828773.tar.bz2 |
IndexedDB: Only reset prefetch caches for cursors in same transaction
Correct prefetching is predicated on resetting the cache when other
requests come in that could invalidate it (i.e. writes) or result in
requests processing out of order (i.e. everything). When prefetching
was originally implemented, the IDB implementation only handled one
transaction at a time, so resetting was done with a big hammer - reset
all of a front-end's caches when any other request is made. This was
acknowledged as future work during code review.
The future is now! Only reset caches for cursors from the same
transaction as the triggering request, which should be a performance
win for concurrent transactions in the same front-end.
BUG=329950
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246245
Review URL: https://codereview.chromium.org/128713006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/indexed_db')
-rw-r--r-- | content/common/indexed_db/indexed_db_messages.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/common/indexed_db/indexed_db_messages.h b/content/common/indexed_db/indexed_db_messages.h index 365d129..6f88964 100644 --- a/content/common/indexed_db/indexed_db_messages.h +++ b/content/common/indexed_db/indexed_db_messages.h @@ -16,6 +16,8 @@ #include "third_party/WebKit/public/platform/WebIDBCursor.h" #include "third_party/WebKit/public/platform/WebIDBDatabase.h" +#undef IPC_MESSAGE_EXPORT +#define IPC_MESSAGE_EXPORT CONTENT_EXPORT #define IPC_MESSAGE_START IndexedDBMsgStart // Argument structures used in messages |