FilePicker icon indicating copy to clipboard operation
FilePicker copied to clipboard

it spend too much time in ui thread

Open Eaken opened this issue 4 years ago • 9 comments

it spend too much time in ui thread,my device has more than 1000 pictures,it took ten seconds to start FilePickerActivity

Eaken avatar Apr 04 '20 12:04 Eaken

i also facing the same problem. have you got any solution?

deepaksharma-techgropse avatar Apr 30 '20 05:04 deepaksharma-techgropse

i also facing the same problem. have you got any solution?

use https://github.com/zhihu/Matisse

Eaken avatar Apr 30 '20 08:04 Eaken

Paging support has been introduced in version 1.4.0-alpha02. You can check it out.

jaiselrahman avatar May 19 '20 08:05 jaiselrahman

Paging support has been introduced in version 1.4.0-alpha02. You can check it out.

This still happens with 1.4.0. You need to have a lot of images to see the issue. The difference is that app does not crash as before, but loading takes 15s on Samsung S10, which is quite slow.

iskugor avatar May 20 '20 14:05 iskugor

I tried with around 2000 images but I couldn't notice much difference and the way the paging is implemented it fetches only 15 images from media store first time then 120 images per page, so it should load quickly.

Can it be any other issue? May because of loading thumbnails for high res images?

Can you verify it?

jaiselrahman avatar May 24 '20 15:05 jaiselrahman

No, I don't think that is the issue, other apps with gallery picker work very fast.

iskugor avatar May 25 '20 15:05 iskugor

Another thing - if I open file picker, it works very fast. Images and videos are slow, audio is also slow, but not as much as images and videos.

iskugor avatar May 27 '20 07:05 iskugor

@iskugor Can you try this app, select some images and share the log using the menu so that it may help me to identify the issue?

jaiselrahman avatar May 27 '20 12:05 jaiselrahman

@jaiselrahman check https://github.com/jaiselrahman/FilePicker/pull/64

iskugor avatar May 27 '20 16:05 iskugor