Hello!

I noticed that starting a random slide show might take some time (up
to some minutes, depending on the amount of images and the machine).

Looking into the code showed that a list was used to prepare another
random shuffled list, so it was an O(n^2) algorithm. I changed this to
use an array (similar to STLs random_shuffle) and got a significant
performance improvement: Starting time of random or non-random
slideshows is now almost the same (seconds instead of minutes).

I attatched a patch for slideshow.c in this mail. The patch is based
on svn revision 1375.

Kjell

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geeqie-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to