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

Issue 1126043005: Make re-scanning of devices much faster by caching content hashcodes. (Closed)

Created:
5 years, 7 months ago by yawano
Modified:
5 years, 7 months ago
Reviewers:
mtomasz, Steve McKay
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, Steve McKay, fukino
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make re-scanning of devices much faster by caching content hashcodes. This CL is took over from issue 1112573005 at patchset 30001 (http://crrev.com/1112573005#ps30001) BUG=476688 TEST=*ImportController* Committed: https://crrev.com/e13e3de602a2b14c4481ee948fe3c0fb03064d5b Cr-Commit-Position: refs/heads/master@{#329377}

Patch Set 1 #

Patch Set 2 : Use metadata hashcode as part of cache key. #

Total comments: 3

Patch Set 3 : Change cache size to 10k. #

Patch Set 4 : Fix unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -35 lines) Patch
M ui/file_manager/file_manager/background/js/duplicate_finder.js View 1 2 4 chunks +57 lines, -33 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder_unittest.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner.js View 2 chunks +6 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/common/js/lru_cache.js View 1 chunk +9 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/manifest.json View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
yawano
@mtomasz: PTAL. Thank you! @smckay: I'll add you in CC since you are the original ...
5 years, 7 months ago (2015-05-11 11:48:25 UTC) #2
mtomasz
lgtm with an (optional) nit https://codereview.chromium.org/1126043005/diff/20001/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): https://codereview.chromium.org/1126043005/diff/20001/ui/file_manager/file_manager/background/js/duplicate_finder.js#newcode56 ui/file_manager/file_manager/background/js/duplicate_finder.js:56: importer.DriveDuplicateFinder.MAX_CACHED_HASHCODES_ = 1000; nit: ...
5 years, 7 months ago (2015-05-12 00:17:27 UTC) #3
Steve McKay
LGTM. https://codereview.chromium.org/1126043005/diff/20001/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): https://codereview.chromium.org/1126043005/diff/20001/ui/file_manager/file_manager/background/js/duplicate_finder.js#newcode56 ui/file_manager/file_manager/background/js/duplicate_finder.js:56: importer.DriveDuplicateFinder.MAX_CACHED_HASHCODES_ = 1000; On 2015/05/12 00:17:27, mtomasz wrote: ...
5 years, 7 months ago (2015-05-12 02:16:19 UTC) #5
yawano
Thank you for the review! Changed the cache size to 10k. https://codereview.chromium.org/1126043005/diff/20001/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): ...
5 years, 7 months ago (2015-05-12 03:41:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126043005/40001
5 years, 7 months ago (2015-05-12 04:05:23 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/56321)
5 years, 7 months ago (2015-05-12 04:59:35 UTC) #11
yawano
@mtomasz: I forgot to add an import to lru_cache.js in unit tests. Fixed it with ...
5 years, 7 months ago (2015-05-12 08:41:27 UTC) #12
mtomasz
still lgtm!
5 years, 7 months ago (2015-05-12 08:43:00 UTC) #13
yawano
On 2015/05/12 08:43:00, mtomasz wrote: > still lgtm! Thank you!
5 years, 7 months ago (2015-05-12 08:47:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126043005/60001
5 years, 7 months ago (2015-05-12 08:48:11 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-12 08:51:42 UTC) #18
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 08:52:23 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e13e3de602a2b14c4481ee948fe3c0fb03064d5b
Cr-Commit-Position: refs/heads/master@{#329377}

Powered by Google App Engine
This is Rietveld 408576698