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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp

Issue 2635403002: IndexedDB: Replace O(n^2) algorithm computing multientry index keys (Closed)
Patch Set: add comment about hashtable Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
index 8ca3177513f2d504be24887d9d42b37c5816514c..96b02148a7c520b30ee39d87f801adb3c658f26c 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -329,10 +329,7 @@ static void generateIndexKeysForValue(v8::Isolate* isolate,
} else {
DCHECK(indexMetadata.multiEntry);
DCHECK_EQ(indexKey->getType(), IDBKey::ArrayType);
- indexKey = IDBKey::createMultiEntryArray(indexKey->array());
-
- for (size_t i = 0; i < indexKey->array().size(); ++i)
- indexKeys->push_back(indexKey->array()[i]);
+ indexKeys->appendVector(indexKey->toMultiEntryArray());
}
}
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698