[mythtv-commits] Ticket #6554: Access ProgramList more efficiently.

MythTV mythtv at cvs.mythtv.org
Sat May 16 20:30:07 UTC 2009


#6554: Access ProgramList more efficiently.
----------------------------------------------+-----------------------------
 Reporter:  Marc Alban <marcalban at gmail.com>  |       Owner:  ijr 
     Type:  patch                             |      Status:  new 
 Priority:  minor                             |   Milestone:  0.22
Component:  MythTV - General                  |     Version:  head
 Severity:  low                               |     Mlocked:  0   
----------------------------------------------+-----------------------------
 A patch to access the ProgramList class more efficiently in various
 screens.  These changes are along the same lines as the patch for #6550.

 while(!list.empty()) is more efficient that while(list.count())

 and

 using an iterator to step through the list is O(n), while stepping through
 using an index (at() or [ ]) is O(n*n)

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


More information about the mythtv-commits mailing list