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

Issue 2385093002: DevTools: introduce Trie data structure (Closed)

Created:
4 years, 2 months ago by lushnikov
Modified:
4 years, 2 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: introduce Trie data structure This patch introduces uncompressed Trie implementation. Trie comes handy to quickly answer questions of type "give me all words with given prefix". Text editor autocomplete benefits immediately from the trie index. The automapping algorithm prototype also relies heavily on the trie to quickly query file paths. The performance and memory analysis of the implementation: https://goo.gl/UdgS4H BUG=none R=dgozman, pfeldman Committed: https://crrev.com/d9cfae12769e0007cc132d25af708a7f8a802096 Cr-Commit-Position: refs/heads/master@{#422663}

Patch Set 1 #

Patch Set 2 : use @dgozman's array implementation #

Patch Set 3 : rebaseline #

Total comments: 8

Patch Set 4 : address comments #

Total comments: 8

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+474 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/inspector-unit-test.js View 1 2 2 chunks +20 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html View 1 2 3 4 1 chunk +181 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie-expected.txt View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/TextDictionary.js View 1 2 3 5 chunks +5 lines, -6 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/common/Trie.js View 1 2 3 4 1 chunk +144 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/module.json View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
lushnikov
please, take a look
4 years, 2 months ago (2016-10-03 08:59:34 UTC) #4
lushnikov
please, take another look. I've updated measurements for the new proposed implementation
4 years, 2 months ago (2016-10-03 19:32:37 UTC) #7
dgozman
https://codereview.chromium.org/2385093002/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html File third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html (right): https://codereview.chromium.org/2385093002/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html#newcode10 third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html:10: UnitTest.addResult("\nTest add:"); Useless one. https://codereview.chromium.org/2385093002/diff/40001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2385093002/diff/40001/third_party/WebKit/Source/devtools/BUILD.gn#newcode174 ...
4 years, 2 months ago (2016-10-03 20:32:57 UTC) #14
lushnikov
https://codereview.chromium.org/2385093002/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html File third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html (right): https://codereview.chromium.org/2385093002/diff/40001/third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html#newcode10 third_party/WebKit/LayoutTests/http/tests/inspector-unit/trie.html:10: UnitTest.addResult("\nTest add:"); On 2016/10/03 20:32:57, dgozman wrote: > Useless ...
4 years, 2 months ago (2016-10-03 22:56:22 UTC) #17
dgozman
lgtm https://codereview.chromium.org/2385093002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Trie.js File third_party/WebKit/Source/devtools/front_end/common/Trie.js (right): https://codereview.chromium.org/2385093002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Trie.js#newcode26 third_party/WebKit/Source/devtools/front_end/common/Trie.js:26: next = this._freeNodes.pop(); Let's comment that we don't ...
4 years, 2 months ago (2016-10-03 23:08:34 UTC) #20
lushnikov
Thanks, all done! https://codereview.chromium.org/2385093002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Trie.js File third_party/WebKit/Source/devtools/front_end/common/Trie.js (right): https://codereview.chromium.org/2385093002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Trie.js#newcode26 third_party/WebKit/Source/devtools/front_end/common/Trie.js:26: next = this._freeNodes.pop(); On 2016/10/03 23:08:34, ...
4 years, 2 months ago (2016-10-04 00:17:59 UTC) #21
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/2385093002/80001
4 years, 2 months ago (2016-10-04 00:19:05 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-04 01:55:33 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 02:00:09 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d9cfae12769e0007cc132d25af708a7f8a802096
Cr-Commit-Position: refs/heads/master@{#422663}

Powered by Google App Engine
This is Rietveld 408576698