My Videos plugin question (1 Viewer)

LRFalk01

Portal Pro
August 27, 2007
257
92
39
Home Country
United States of America United States of America
I'm not sure if this should go here as this is a default plugin with MP, but here it goes:

I have about 350 movies that I use My Videos to display. It takes my MP machines about 7 seconds to build the list of movies with their imdb information and whatnot. This in itself is not bad save for any time one leaves this list and goes back to it, there is a 7 second pause in the application.

Two ideas:

1. Looking through the code of the plugin (about 2.5k lines of it) I noticed that it uses ArrayList of build these listItems then does type casting to work with them. Does anyone think if this were changed to use List<> instead it would speed up this plugin?

2. Would it be overly difficult to store this list in memory and just call it back from there when needed? Then MP would only have to make this list once and just recall it when needed. Could add a button to refresh list from the main My Videos screen.

Please let me know your thoughts.

Thanks,
LRFalk01
 

LRFalk01

Portal Pro
August 27, 2007
257
92
39
Home Country
United States of America United States of America
Well, I went through the My Viedos plugin and redid all of the ArrayListing used for the VirtualDirectory and the actual listing in the GUIListItem. This had very little effect on the time required rendering the list. Time for me to investigate option two.

I was thinking about a service that runs in the background monitoring the main My Videos Folder(s). This service could maintain a completed List<GUIListItem> for the plugin to just pull from.

Thanks,
LRFalk01
 

LRFalk01

Portal Pro
August 27, 2007
257
92
39
Home Country
United States of America United States of America
I believe the CleanupThumbs() method is giving me troubles with my 'cached' GUIListItems. Does anyone know of a way to make an item not have its thumbnails cleaned up by this function that apparently is ran every time a window changes?

Thanks,
LRFalk01
 

Users who are viewing this thread

Top Bottom