[mythtv-commits] Ticket #4495: Guide is slow after multirec merge

MythTV mythtv at cvs.mythtv.org
Sat Jan 19 21:15:04 UTC 2008


#4495: Guide is slow after multirec merge
-----------------------------------------------------+----------------------
 Reporter:  Mark Buechler <Mark.Buechler at gmail.com>  |       Owner:  ijr    
     Type:  patch                                    |      Status:  new    
 Priority:  minor                                    |   Milestone:  unknown
Component:  mythtv                                   |     Version:  head   
 Severity:  medium                                   |     Mlocked:  0      
-----------------------------------------------------+----------------------
 On my setup, after the multirec merge, guide response time is too slow to
 really be usable - especially with concurrent recordings set higher than
 1. The problem is, with each channel painted on the guide, two calls of
 QUERY_RECORDER GET_FREE_INPUTS are made to the backend for each cardid. I
 have 5 physical cards and if I set currency to 3 for each of the 3 DVB
 cards I have, that's 22 calls for every channel. My guide paints 6
 channels per page so that makes 132 calls per page.

 This patch caches the results from GET_FREE_INPUTS on the frontend for
 only the guide for each page drawn. Each guide page is drawn 2 times so
 that reduces, for me, the calls to 10 for each page. The cache gets
 cleared for each page draw.

 More can be gained by clearing the cache only once when the guide is first
 brought up, but that would have the side effect of not updating for inputs
 being grabbed while in the guide.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4495>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list