With Pictures, the first step was to download information about the whole cloud to memory, which meant that if you had thousands of files, you would run into problems on some platforms.
In order to improve the performance of Gallery, the app now loads:
Information about all images in the current album
Information about max 4 images in the sub-albums
No information about albums. The name is extracted from the path leading to an image
We could improve this by downloading information about:
all images in the current album
all images in the sub-albums
all sub-albums
Benefit / value
We could do some true conflict resolution when moving images, before having to send them to the back-end
We could properly sort albums by date
Name sorting for albums would actually sort the images used as representation using the full list instead of only sorting the 4 images we have
It would make it possible to only turn albums with write permission into drop targets
The album cover could be updated after a move
Risk / caveats
Example A
The top album contains 20 sub-albums and 300 images
Each sub-album contains 200 images
We currently load and array containing 300 + (20 x 4) = 380 references
With the new model, we would load 300 + 20 + (20 x 200) = 4320...
There may be a performance penalty when sorting or switching albums.
From @oparoz on March 3, 2016 22:40
Feature request
User type: All
User level: All
Description
With Pictures, the first step was to download information about the whole cloud to memory, which meant that if you had thousands of files, you would run into problems on some platforms.
In order to improve the performance of Gallery, the app now loads:
We could improve this by downloading information about:
Benefit / value
Risk / caveats
Example A
The top album contains 20 sub-albums and 300 images Each sub-album contains 200 images
We currently load and array containing 300 + (20 x 4) = 380 references
With the new model, we would load 300 + 20 + (20 x 200) = 4320...
There may be a performance penalty when sorting or switching albums.
Sponsorship
None
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Copied from original issue: owncloud/gallery#557