DescriptionIndexedDB: 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 #
Messages
Total messages: 9 (0 generated)
|