Opened 15 years ago

Closed 4 years ago

#8778 closed Developer Task (Trac EOL)

RecordingProfile speedups / refactor

Reported by: stuartm Owned by: stuartm
Priority: minor Milestone: needs_triage
Component: MythTV - Recording Version: Master Head
Severity: medium Keywords: speedup memory leak
Cc: Ticket locked: no

Description

Obtaining the profile via RecordingProfile in TVRec is pretty slow when it doesn't need to be and this impacts channel change times. Populating the 'SelectSetting' and it's backing ComboBox alone can take 100ms and this is done twice, once for the signal monitor and once for the actual program.

Attached is an initial suggested change which eliminates a redundant query on the database when loadByType() and loadByGroup() are used (untested atm).

Further improvements can be made by not building the settings object (and therefore the widget) just to return the profile from the database.

Attachments (2)

recprofile.diff (5.7 KB ) - added by anonymous 15 years ago.
valgrind-and-logs.tar.bz2 (307.9 KB ) - added by Stuart Auchterlonie 15 years ago.
Valgrind logs and backend log from 2 day long run showing memory leaks in RecordingProfile

Download all attachments as: .zip

Change History (10)

by anonymous, 15 years ago

Attachment: recprofile.diff added

comment:1 by stuartm, 15 years ago

Owner: changed from danielk to stuartm
Status: newaccepted

comment:2 by stuartm, 15 years ago

Reporter: changed from anonymous to stuartm

by Stuart Auchterlonie, 15 years ago

Attachment: valgrind-and-logs.tar.bz2 added

Valgrind logs and backend log from 2 day long run showing memory leaks in RecordingProfile

comment:3 by Stuart Auchterlonie, 15 years ago

Keywords: speedup memory leak added
Summary: RecordingProfile speedupsRecordingProfile speedups / refactor

Added valgrind logs which show the leaks that the RecordingProfile class causes.

comment:4 by stuartm, 15 years ago

(In [6dd9b7892]) Recording profile optimisations (part one).

comment:5 by stuartm, 15 years ago

(In [ad967599]) Reapply, "Recording profile optimisations (part one)".

comment:6 by stuartm, 14 years ago

Type: patchDeveloper Task

comment:7 by Stuart Auchterlonie, 5 years ago

Milestone: unknownneeds_triage

comment:8 by Stuart Auchterlonie, 4 years ago

Resolution: Trac EOL
Status: acceptedclosed

We have moved all bug tracking to github [1]

If you continue to have this issue, please open a new issue at github, referencing this ticket.

[1] - https://github.com/MythTV/mythtv/issues

Note: See TracTickets for help on using tickets.