Lazy loading

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
soulky
Posts: 133
Joined: Tue Dec 06, 2011 9:20 am

Lazy loading

Post by soulky »

It would be nice to have a lazy loading feature for thumbnails. This would close the gap between loading thumbnails for entire folder and loading thumbnails only for the visible area.
The idea would be to resume thumbnail loading when the computer is near or in idle mode. This way thumbnails could get accessed much quicker.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Lazy loading

Post by XnTriq »

Speed improvement: Lazy loading has already been implemented.
soulky
Posts: 133
Joined: Tue Dec 06, 2011 9:20 am

Re: Lazy loading

Post by soulky »

My idea would be to make xnviewmp preload thumbnails even in lazy loading mode. When scrolling folders in thumbnail view it easily shows that it takes some time for xnviewmp to load/create the thumbnails for displaying them while thumbnails that are already in memory get displayed very quickly. So my suggestion would not to stop loading of thumbnails but optionally resume background thumbnail loading at a very slow rate when the cpu is (almost) idle.
The use case would be a case when skipping through a lot of files in a folder. If you open one of them and look at it for example a video, then xnviewmp would still load thumbnails in the background. So when you quit the video and resume skipping through the files, you have the nex thumbnails already loaded and can scroll more quickly.
Rebellious
Posts: 39
Joined: Tue Jul 22, 2008 4:49 pm

Re: Lazy loading

Post by Rebellious »

Probably depends on your CPU. On my machines thumbnails load so fast that caching may be unnecessary.
soulky
Posts: 133
Joined: Tue Dec 06, 2011 9:20 am

Re: Lazy loading

Post by soulky »

Rebellious wrote:Probably depends on your CPU. On my machines thumbnails load so fast that caching may be unnecessary.
Actually it varies a lot. Somtimes it is quick to load, sometimes it is slow. But it is not only about loading but alos about creating the thumbnails which is much always much slower than simpliy loading the thumnails from the database.
Post Reply