Posts: 40
Joined: Oct 2011
Reputation:
1
nupi
Junior Member
Posts: 40
An option not to show the thumbnails (i.e. list view) would definitely be helpful for large collections....
Posts: 35
Joined: Jun 2011
Reputation:
0
Sorry that I've been AFK for a couple of weeks. I updated the first post so it should have the latest version of the web interface.
I'm going to rewrite the controls (L/R/U/D/Menu/Select/Power) tonight to change them from using the httpapi to using jsonrpc so we can get it in the repository.
Posts: 40
Joined: Oct 2011
Reputation:
1
nupi
Junior Member
Posts: 40
Cool, while the movie list view uses significantly less memory, it still takes very long to load - much longer than artists which I have at least 3 times more in my last than movies. Why could that be happening and how to speed it up?
Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
I may have done something silly code wise. I'll try profiling when I get home and see if I can make out anything useful from it.
How is the TV show list?
Posts: 40
Joined: Oct 2011
Reputation:
1
nupi
Junior Member
Posts: 40
I am afraid I dont use that one
Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
I think it's the JSONRPC call itself. Looking at mine. To retrieve my films (~500) takes about 750ms. There is a lot more information retrieved for films as opposed to artists.
Scaling that up, I think you said you had ~3500 films, so we're looking at a good 5 seconds just to get the items from XBMC.
Does that sound close or is it much worse than that?
We could split this up. It would mean the initial list should be faster to load but we'd have to do a call for each film for the extra information on hover/information click.
Posts: 40
Joined: Oct 2011
Reputation:
1
nupi
Junior Member
Posts: 40
2011-11-09, 09:41
(This post was last modified: 2011-11-09, 09:43 by nupi.)
In my case it is something like 700 films and takes almost 10seconds but XBMC runs on AMD C60 (think dual core Atom performance) so it may partially be CPU bound.
In any case, it should be good enough to simply ask for the titles, initially? Dumping 700 rows of SQLite data to JSON in any case should be fairly cheap operation, so maybe there is something wrong with the API behind it? Another option would be to load the list in tranches and fetch more when the user scrolls down (like how Facebook implements the news feed these days) - if the API supports that
Posts: 794
Joined: Apr 2011
Reputation:
16
Mizaki
Posting Freak
Posts: 794
I've changed it so the extra info is only called when you bring up the info page. It took about 400-500ms off the movie list call for me.
Let me know how it is for you.
Posts: 1,264
Joined: Sep 2009
Reputation:
34
Quick question about ajax and xbmc web servers. Is it possible to run an .exe "on the server/xbmc box" through this ajax webserver? Or is a server side language required like php, asp, etc.?
The reason I am asking is about the possibility of running ffmpeg.exe for transcoding and possibly streaming through jw player.
Thanks