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

Issue 2635403002: IndexedDB: Replace O(n^2) algorithm computing multientry index keys (Closed)

Created:
3 years, 11 months ago by jsbell
Modified:
3 years, 10 months ago
Reviewers:
pwnall
CC:
chromium-reviews, blink-reviews, haraken, jsbell+idb_chromium.org, cmumford
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Replace O(n^2) algorithm computing multientry index keys Replace a stupid O(n^2) algorithm for ensuring that multientry keys are unique with an O(n log n) (sort then remove duplicates) BUG=681980 Review-Url: https://codereview.chromium.org/2635403002 Cr-Commit-Position: refs/heads/master@{#444489} Committed: https://chromium.googlesource.com/chromium/src/+/d84c00297b927bf972fa30578cf8217f84f34a8a

Patch Set 1 #

Patch Set 2 : Use std::unique to reduce memory usage #

Patch Set 3 : std::copy_if for the STL trifecta #

Total comments: 7

Patch Set 4 : Simplify API to avoid copies #

Patch Set 5 : const #

Patch Set 6 : add comment about hashtable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -27 lines) Patch
M third_party/WebKit/Source/modules/indexeddb/IDBKey.h View 1 2 3 4 2 chunks +3 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
jsbell
pwnall@ - please take a look?
3 years, 11 months ago (2017-01-18 01:00:22 UTC) #4
pwnall
LGTM with a couple of small comments. Nice perf find! https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp File third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp (right): https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp#newcode109 ...
3 years, 11 months ago (2017-01-18 02:35:19 UTC) #5
jsbell
Thanks, can you take another look pwnall? https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp File third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp (right): https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp#newcode109 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp:109: KeyArray result; ...
3 years, 11 months ago (2017-01-18 18:18:56 UTC) #8
pwnall
https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp File third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp (right): https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp#newcode109 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp:109: KeyArray result; On 2017/01/18 18:18:56, jsbell wrote: > On ...
3 years, 11 months ago (2017-01-18 19:04:15 UTC) #9
jsbell
https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp File third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp (right): https://codereview.chromium.org/2635403002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp#newcode109 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp:109: KeyArray result; On 2017/01/18 19:04:15, pwnall wrote: > If ...
3 years, 11 months ago (2017-01-18 19:39:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2635403002/100001
3 years, 11 months ago (2017-01-18 19:45:24 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 21:31:32 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/d84c00297b927bf972fa30578cf8...

Powered by Google App Engine
This is Rietveld 408576698