Speed improvement: Lazy loading

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
User avatar
XnTriq
Moderator & Librarian
Posts: 5401
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Speed improvement: Lazy loading

Post by XnTriq » Wed Oct 27, 2010 12:00 am

It took me quite a while to notice this great new feature, because I don't have too many folders with lots of large photos on my HDD.
xnview ([url=http://newsgroup.xnview.com/viewtopic.php?p=87405&hilit=19836#p87405]XnViewMP beta 0.30[/url] » Changelog) wrote:* experimental thumbnail create on the fly
[...]
* Thumbnail creation rewritten (now thumbnail creation follows position of slider)
To see it in action you need to turn off Create thumbnail for whole folder in Tools » Settings » Browser » Thumbnail » Misc.

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Speed improvement: Lazy loading

Post by marsh » Mon Nov 01, 2010 10:09 pm

Lazy is technical now? Oh my! Get out your stopwatches or sundials! :mrgreen:

obelisk
Posts: 400
Joined: Fri Jan 09, 2009 9:54 am

Re: Speed improvement: Lazy loading

Post by obelisk » Mon Nov 01, 2010 11:05 pm

Is this going into 1.97?

User avatar
XnTriq
Moderator & Librarian
Posts: 5401
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Speed improvement: Lazy loading

Post by XnTriq » Wed Nov 03, 2010 4:15 am

marsh wrote:Lazy is technical now? Oh my! Get out your stopwatches or sundials! :mrgreen:
OK, I don't want to get too philosophical here, but technically speaking, isn't laziness believed to be the father of invention :P

vommie
Posts: 108
Joined: Sat Apr 14, 2007 2:36 am
Location: Berlin

Re: Speed improvement: Lazy loading

Post by vommie » Sat Nov 06, 2010 3:28 am

This is the feature I wished for over a year - it's sooo great it's in XnViewMP now. Because I have a lot of really big folders (with thousands of tagged files in it) I never was able to use XnView in other ways than just the image viewer - it crashed when XnView was using 3GB of ram because it was/is loading all thumbs into it.

So I am very happy to see this feature. I hope it will be improved in speed later on, f.e. it could precache some thumbs before and after the actual slider position (~50 thumbs to both sides?), so the user does not recognize the "lazy loading" if he scrolls in small steps up or down.

Additionally a self protection would be cool. XnView could remove loaded thumbs which aren't displayed actually out of the ram - at least when it reaches the critical border of 3GB. This would prevent crashes and data losses.

User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: Speed improvement: Lazy loading

Post by JohnFredC » Sat Nov 06, 2010 1:16 pm

It is very important that, where possible, lazy loading should distinguish between lazy "creation" and lazy "display". Display of cached thumbnails should always take precedence.

See my post about this topic here and please offer support if you agree.

In summary, there should be at least these settings:
  • [x] Display thumbs for whole folder (off = lazy)
    [x] Create thumbs for whole folder (off = lazy)
    • [x] In background
Also a thumb daemon would be useful for heavily populated folder trees.
John

ElenaLauder
Posts: 2
Joined: Sun Nov 20, 2011 6:09 pm

Re: Speed improvement: Lazy loading

Post by ElenaLauder » Sun Nov 20, 2011 6:28 pm

Create thumbnail for whole folder in Tools » Settings » Browser » Thumbnail » Misc.
I didn't found this options in XnView V1.98.2?
Where is this option?
Thank you.
Elena

User avatar
XnTriq
Moderator & Librarian
Posts: 5401
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Speed improvement: Lazy loading

Post by XnTriq » Sun Nov 20, 2011 7:00 pm

ElenaLauder wrote:I didn't found this options in XnView V1.98.2?
Where is this option?
Elena, this feature is only available in XnView MP.

ElenaLauder
Posts: 2
Joined: Sun Nov 20, 2011 6:09 pm

Re: Speed improvement: Lazy loading

Post by ElenaLauder » Sun Nov 20, 2011 7:42 pm

XnTriq wrote:
ElenaLauder wrote:I didn't found this options in XnView V1.98.2?
Where is this option?
Elena, this feature is only available in XnView MP.
Ahaaaaa, :), oh sorry.
Thank you very much!
Namaste
Elena

User avatar
XnTriq
Moderator & Librarian
Posts: 5401
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Speed improvement: Lazy loading

Post by XnTriq » Sun Nov 20, 2011 8:45 pm

ElenaLauder wrote:Ahaaaaa, :), oh sorry.
Thank you very much!
No problem 8)
Welcome to the forum!

obelisk
Posts: 400
Joined: Fri Jan 09, 2009 9:54 am

Re: Speed improvement: Lazy loading

Post by obelisk » Sun Nov 20, 2011 10:41 pm

how is xnview Win and MP in feature terms now?

User avatar
budz45
XnThusiast
Posts: 1597
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Speed improvement: Lazy loading

Post by budz45 » Sun Nov 20, 2011 10:55 pm

obelisk wrote:how is xnview Win and MP in feature terms now?
Duh! http://newsgroup.xnview.com/viewtopic.php?f=60&t=23940
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only

User avatar
budz45
XnThusiast
Posts: 1597
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Speed improvement: Lazy loading

Post by budz45 » Fri Nov 16, 2012 7:50 pm

Do you think Pierre that we could have lazy loading of file-list for the Viewer? ----> For Folders with Huge amount of image files (1000+)
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only

Rebellious
Posts: 39
Joined: Tue Jul 22, 2008 4:49 pm

Re: Speed improvement: Lazy loading

Post by Rebellious » Sat Dec 01, 2012 2:36 pm

Thumbnail creation is very fast on my system, so much so that caching is not really necessary, except for network drives.

Post Reply