DescriptionReuse FileTasks when entries are not changed.
fileManagerPrivate.getFileTasks is slow.
However, every time a file is copied during multi file copy, the method
was called via CHANGE_THROTTLED event listener.
This CL stops creating FileTasks again when file entries for the
previous FileTasks are same as the current ones.
Other possible solution to this problem is to change C++ interface of
fileManagerPrivate.getFileTasks to support incremental update of
FileTasks.
BUG=462989, 712121
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2833413003
Cr-Commit-Position: refs/heads/master@{#467264}
Committed: https://chromium.googlesource.com/chromium/src/+/6e537c987f4d8cc6fcfda8f80b4c3216663371d4
Patch Set 1 #
Total comments: 8
Patch Set 2 : Move areEntriesSame to common/util and rename to isSameEntries. #
Total comments: 2
Patch Set 3 : Use getter for FileTasks.entries. #
Messages
Total messages: 18 (10 generated)
|