View Single Post
Old 08-31-05, 05:21 AM   #15 (permalink)
IanB
Aximsite Rookie
 
Join Date: Aug 2005
Location: UK
Posts: 38
Thanked 1 Time in 1 Post
Originally Posted by vinnielo
Comparing this application with the PTVL one, this one takes a rather long time for listings to display after selecting a channel. Is there a way of reducing the time needed to load? I'm pretty sure the listings load instantly with PTVL.
The problem is that the RT xml file is not very well structured. Basically, you have to iterate through all the programmes in the xml file, regardless of what channel or date they're on, because the programmes or not organised by date or channel. So the more channels or dates you have in your listings file, the longer it'll take to display the listings for a particular date/channel combination.

The PTVL program, I believe, uses separate xml files for each channel, organised into folders for each date. This would make it more efficient when displaying the listings.

But my program was designed to use the Radio Times xmltv data - there would be no point in writing a program which is basically the same as PTVL, and which uses the same data.

I'll have a look to see if I can reorganise the RT xml file to make it more efficient, but that tends to be quite memory-hungry, something which PPCs tend to be quite short on. But I'll see what I can do...

Thanks for the feedback.
IanB is offline   Reply With Quote