Opened 17 years ago
Closed 16 years ago
#6554 closed patch (fixed)
Access ProgramList more efficiently.
| Reported by: | 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)
Change History (2)
by , 17 years ago
| Attachment: | programlist.diff added |
|---|
comment:1 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
(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.

patch to make accessing ProgramList more efficient.