Searching in a MTP folder is slow if the folder has a lot of files |
||||||||
Issue descriptionSteps To Reproduce: (1) In Files app, navigate to a MTP holder that has ~2000 image files (2) Click on the search box (3) Type some query Expected Result: Search result is shown immediately Actual Result: Search is slow How frequently does this problem reproduce? (Always, sometimes, hard to reproduce?) I'm guessing that the file list in the folder is re-fetched, which is slow on MTP, when initiating a search.
,
Jun 7 2017
I'm writing CL to incrementally retrieve current directory listing between normal directory and search result. However, search result is recursive, so in this CL not everything is cached. The retrieved result is dropped when a user moves to another directory. I feel the CL is too complicated given the fact practically only MTP is benefited from this (In some cases result is still not shown properly so I'm debugging for this). The CL is still incomplete, but I would like to hear opinions for that. https://codereview.chromium.org/2925663006/ For the number, the search speed becomes ~10s to below one second by this patch with ~2000 files MTP folder.
,
Jul 6 2017
,
Dec 19 2017
,
Feb 24 2018
,
Feb 28 2018
,
Sep 6
,
Oct 3
,
Nov 9
Cannot reproduce on M72. Search on a directory with ~1000 files is always fast. There's been lots of changes to both the file manager (i.e. metadata caching improvements) and MTP code. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by tetsui@chromium.org
, May 1 2017