Opened 11 years ago

Closed 10 years ago

#6554 closed patch (fixed)

Access ProgramList more efficiently.

Reported by: Marc Alban <marcalban@…> Owned by: Isaac Richards
Priority: minor Milestone: 0.22
Component: MythTV - General Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

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)

Attachments (1)

programlist.diff (4.2 KB) - added by Marc Alban <marcalban@…> 11 years ago.
patch to make accessing ProgramList? more efficient.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Marc Alban <marcalban@…>

Attachment: programlist.diff added

patch to make accessing ProgramList? more efficient.

comment:1 Changed 10 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [21392]) Access ProgramList? more efficiently in various places.

Closes #6554 using patch by Marc Alban with minor tweaks by myself to get it to apply to tv_play.cpp.

Note: See TracTickets for help on using tickets.