2014-02-13, 13:00
@deny and other "Big library user".
I don't think that this script can be improved as Files.GetDirectory JSONRPC method does not support limits= parameters to reduce results :
http://wiki.xbmc.org/index.php?title=JSO...tDirectory
BTW, with your library, Deny, and Ace skin, as you use it, I have build a custom menu based on your Action.xsp file and script run in less than 5 seconds :
Times are cumulatives so running JSON query for Action.xsp file over entire library take 4,628s, scanning every 1205 movies to see if movie is watched or not, take 0,005s (4,633-4,628) and generating properties for 12 movies take 0,199s.
But, as you told me by MP, you have mod Ace skin to run 30 times the script because you have created 30 custom menus based on 30 smart playlists. As skin run 30 instances of script in parallel, you can understand that it can take a loooong time to load.
Can you try with standard Ace skin and just 4 / 5 custom menus ?
You can also use this randomandlastitems.py code (add some debug log), put XBMC in debug mode and rerun XBMC to see how long each script run :
https://www.dropbox.com/s/0cxa6aeqt09gah...stitems.py
I don't think that this script can be improved as Files.GetDirectory JSONRPC method does not support limits= parameters to reduce results :
http://wiki.xbmc.org/index.php?title=JSO...tDirectory
BTW, with your library, Deny, and Ace skin, as you use it, I have build a custom menu based on your Action.xsp file and script run in less than 5 seconds :
Code:
11:23:54 T:5512 DEBUG: Random and Last items script: ##### JSON BIG QUERY 4.457s
11:23:54 T:5512 DEBUG: Random and Last items script: ##### GLOBAL STATS DONE 4.465s
11:23:55 T:5512 DEBUG: Random and Last items script: ##### MOVIES PROPERTIES DONE 4.744s
11:23:55 T:5512 DEBUG: Random and Last items script: Loading PlaylistLastMovieMenu31 started at 2014-02-13 11:23:50 and take 4.750s
11:31:41 T:4464 DEBUG: Random and Last items script: ##### JSON BIG QUERY 4.628s
11:31:41 T:4464 DEBUG: Random and Last items script: ##### GLOBAL STATS DONE 4.633s
11:31:41 T:4464 DEBUG: Random and Last items script: ##### MOVIES PROPERTIES DONE 4.832s
11:31:41 T:4464 DEBUG: Random and Last items script: Loading PlaylistLastMovieMenu31 started at 2014-02-13 11:31:36 and take 4.835s
Times are cumulatives so running JSON query for Action.xsp file over entire library take 4,628s, scanning every 1205 movies to see if movie is watched or not, take 0,005s (4,633-4,628) and generating properties for 12 movies take 0,199s.
But, as you told me by MP, you have mod Ace skin to run 30 times the script because you have created 30 custom menus based on 30 smart playlists. As skin run 30 instances of script in parallel, you can understand that it can take a loooong time to load.
Can you try with standard Ace skin and just 4 / 5 custom menus ?
You can also use this randomandlastitems.py code (add some debug log), put XBMC in debug mode and rerun XBMC to see how long each script run :
https://www.dropbox.com/s/0cxa6aeqt09gah...stitems.py