Files.app: Mitigate performance issue on select-all by prefetching content mime type.
BUG=458915
TEST=Select 2000 photos by Ctrl+A and check that UI responds in less than 500ms.
Committed: https://crrev.com/a8d56decc5033dbc58f4f1023e5c8293568a8723
Cr-Commit-Position: refs/heads/master@{#318853}
5 years, 9 months ago
(2015-03-02 15:20:49 UTC)
#2
Could you take a look? Thanks!
hirono
On 2015/03/02 15:20:49, fukino wrote: > Could you take a look? Thanks! If the contentMimeType ...
5 years, 9 months ago
(2015-03-03 01:49:44 UTC)
#3
On 2015/03/02 15:20:49, fukino wrote:
> Could you take a look? Thanks!
If the contentMimeType property is used other than list container, could you
define constant for the class that uses contentMimeType (selection related
class?) and refer it in createPrefetchPropertyNames_?
https://code.google.com/p/chromium/codesearch#chromium/src/ui/file_manager/fi...
fukino
On 2015/03/03 01:49:44, hirono wrote: > If the contentMimeType property is used other than list ...
5 years, 9 months ago
(2015-03-03 06:36:40 UTC)
#4
On 2015/03/03 01:49:44, hirono wrote:
> If the contentMimeType property is used other than list container, could you
> define constant for the class that uses contentMimeType (selection related
> class?) and refer it in createPrefetchPropertyNames_?
>
https://code.google.com/p/chromium/codesearch#chromium/src/ui/file_manager/fi...
Done.
Additionally, I removed Function.bind from iteration for all selected files.
Could you take a look at file_transfer_controller.js, too?
Thanks!
hirono
lgtm! Thanks! https://codereview.chromium.org/973483002/diff/20001/ui/file_manager/file_manager/foreground/js/file_selection.js File ui/file_manager/file_manager/foreground/js/file_selection.js (right): https://codereview.chromium.org/973483002/diff/20001/ui/file_manager/file_manager/foreground/js/file_selection.js#newcode108 ui/file_manager/file_manager/foreground/js/file_selection.js:108: * These metadata is expected to be ...
5 years, 9 months ago
(2015-03-03 06:50:01 UTC)
#5
Thank you! https://codereview.chromium.org/973483002/diff/20001/ui/file_manager/file_manager/foreground/js/file_selection.js File ui/file_manager/file_manager/foreground/js/file_selection.js (right): https://codereview.chromium.org/973483002/diff/20001/ui/file_manager/file_manager/foreground/js/file_selection.js#newcode108 ui/file_manager/file_manager/foreground/js/file_selection.js:108: * These metadata is expected to be ...
5 years, 9 months ago
(2015-03-03 07:23:44 UTC)
#6
5 years, 9 months ago
(2015-03-03 07:24:44 UTC)
#7
On 2015/03/03 07:23:44, fukino wrote:
> Thank you!
>
>
https://codereview.chromium.org/973483002/diff/20001/ui/file_manager/file_man...
> File ui/file_manager/file_manager/foreground/js/file_selection.js (right):
>
>
https://codereview.chromium.org/973483002/diff/20001/ui/file_manager/file_man...
> ui/file_manager/file_manager/foreground/js/file_selection.js:108: * These
> metadata is expected to be cached.
> On 2015/03/03 06:50:01, hirono wrote:
> > nit: Could you mention that the names are needed for optimization? (and
maybe
> > bug number?) The code itself works without prefetching. So someone may try
to
> > remove this in the future.
>
> Done.
still lgtm, thanks!
fukino
The CQ bit was checked by fukino@chromium.org
5 years, 9 months ago
(2015-03-03 07:24:57 UTC)
#8
Issue 973483002: Files.app: Mitigate performance issue on select-all by prefetching content mime type.
(Closed)
Created 5 years, 9 months ago by fukino
Modified 5 years, 9 months ago
Reviewers: hirono
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 2