yaga icon indicating copy to clipboard operation
yaga copied to clipboard

Performance optimization

Open vauvenal5 opened this issue 4 years ago • 4 comments

Loading big lists of images needs further optimization. Two obvious issues are that we are sorting the image list in the main thread and that we are merging lists in the main thread.

  • [x] move merge to background
  • [x] move sorting to background

vauvenal5 avatar Sep 27 '20 19:09 vauvenal5

With 500 pics the reload time is about 3 secs, this is ok for me. But If I show all of my pics (10000) I can't wait till a realod is done.

jakobroehrl avatar Aug 16 '21 07:08 jakobroehrl

This is actually already considered fixed. Since the two operations mentioned here are already in the background thread.

As far as I know there is currently no pagination implemented in Nextcloud, so I do not have any choice then loading the full list of images. Not sure that I can do anything more here.

What would be the expected behavior from your point of view?

vauvenal5 avatar Aug 18 '21 07:08 vauvenal5

See also this https://github.com/vauvenal5/yaga/issues/80

vauvenal5 avatar Aug 18 '21 08:08 vauvenal5

And this: https://github.com/nextcloud/ios/issues/845

vauvenal5 avatar Aug 18 '21 08:08 vauvenal5