-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance thumbnail downloading / Download all thumbnails in one folder / smart cache size #177
Comments
That should be done automatically on entering the folder and not require an extra action. Or which thumbnails do you refer to? |
No, Thumbnails are only downloaded once you scroll down.. the disk cache has a limited size 8 Mbytes as far as I remember and the purge policy is LRU. There might be folders which contain more than 8 MByte of thumbnails! Even if not, once you reach the 8 mb threshold, thumbs from other folders are evicted from the cache. |
This is a tricky one, I think... The reason for the idea of downloading all thumbnails is that otherwise one have to scroll slowly through all images in one folder. With these both restrictions (bandwith and cache size) I thought it must be an optional action that the user have to choose (and therefore really want it). PS: A thumbnail is ~15kb. |
We should always download all thumbnails on (non-metered?) WiFi. Otherwise I think the best design would be to download all thumbnails on screen, and a certain number off the bottom and top, in case the user scrolls. @jancborchardt and others, thoughts? |
Download behaviorHow about making it depend on the connection:
Cache sizeCould we make this dynamic and choose a cache size during the first start of the app and maybe every once in a while?
Just an idea. So.. @ all : Would this be possible? And would this make sense? |
@AndyScherzinger sounds similar to what I said; +1 |
yes, I basically summed up the post and comments :) |
@strugee @AndyScherzinger sounds good. No options, just automatic and fitting behavior. :) |
I wouldn't limit the Cachesize to 100mb. I would go with 5% and only if the remaining free storage is <80% of the total device storage limit it to the said 100mb. |
@jancborchardt @tobiasKaminsky I think the simpler version as described by @Spacefish by simply going for 5% as long as a certain device storage is still available would be best. I would change it a little though and say:
sounds a bit complicated but should work nicely :) What do you think @tobiasKaminsky ? Hope it is not to over-engineered 😋 |
Download behaviour is fine for me. But we have to ensure that it does not delay any other task, e.g. downloading a file or fetching a resized image. Cache size: I would not set any limit, but increase it dynamically. |
There should imho also be a hard maximun, simply to be a good citizen on the phone. 😃 |
How are other apps handling this? Dropbox, etc? |
I don't know since this is an internal implementation, blackbox... :( |
Na, I meant just be downloading lots of dropbox content and see the cache size ;) |
@tobiasKaminsky just create a fakeaccount for testing purposes, that’s always recommended to check what others are doing. :) |
I have a new idea: Regular sync: Based on the same logic of above we can do a regular sync. As we have a "least recently used" cache policy all new thumbnails and most often used thumbnails should stay in cache. Both can be done automatically via a JobScheduler with the limitation "wlan" and "charging". |
@tobiasKaminsky that sounds like a wonderful idea. We should still implement the previously discussed behavior though, when actively browsing to a folder. |
Good call! So the previously mentioned logic should be used, preferring the generation of previews for recently modified files. :) |
Download all thumbnails in one folder with one click -> three dots menu.
@jancborchardt should there be a notification for this which displays the progress?
The text was updated successfully, but these errors were encountered: