2012-02-22, 11:48
Montellese Wrote:JSON-RPC does not yet provide any filtering functionality but once that's possible I'm sure scripts like watchlist can be improved to only fetch as much data through JSON-RPC as necessary. JSON-RPC is still very young but it's contantly growing (once the feature freeze is over ).
But still things can only be optimised so much and people have to keep and mind that a low-end device like an ATV2, an iPad and most embedded devices (compared to a normal computer) does not provide as much power as other systems do. Every system has a drawback, one has a fast boot-time but not much ponies and the other has a longer boot-time but enough power to handle anything you throw at it.
I am just jumping on that discussion. I have been working on an app based on JSON RPC for a few months now (about a year and not finished )
When my app starts i ask for all movies (265 movies).
When working with an XBMC running on osx or win, it s really fast (not more than 2 sec to get the json response).
But recently i bought a ATV2. It runs amazingly well with XBMC. The GUI is even pretty fast.
Now as i am working with the JSON from my ATV2 i can see the difference with querying JSON.
On my atv2 asking for all movies takes up to 20sec.
I now the ATV2 is not as powerful as a PC, but it still seems pretty long to me.
Moreover i was wondering if it could come from the DB query or the JSON construction.
When we enter the movie view in XBMC, is a DB query done at that moment?
I ask cause on my ATV2 opening the movie view takes about 2-5 sec.
So if there is a query DB, we "might" conclude that in the 20sec it takes to send back the JSON result of my query, about 10 to 15 sec is used to create the JSON object / translate to string / send.
I now i am speculating but i really hope in a near future we can improve that response time.
The main problem with that in my app is not that loading the library takes a long time, the problem is that during those 20sec my other calls to XBMC wont get through (querying covers ...)
Anyway thanks a lot for all your work. We can do some amazing things thanks to your work!