Opened 8 years ago

Last modified 8 years ago

#8778 accepted Developer Task

RecordingProfile speedups / refactor

Reported by: stuartm Owned by: stuartm
Priority: minor Milestone: unknown
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 8 years ago.
valgrind-and-logs.tar.bz2 (307.9 KB) - added by Stuart Auchterlonie 8 years ago.
Valgrind logs and backend log from 2 day long run showing memory leaks in RecordingProfile?

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by anonymous

Attachment: recprofile.diff added

comment:1 Changed 8 years ago by stuartm

Owner: changed from danielk to stuartm
Status: newaccepted

comment:2 Changed 8 years ago by stuartm

Reporter: changed from anonymous to stuartm

Changed 8 years ago by Stuart Auchterlonie

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

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

comment:3 Changed 8 years ago by Stuart Auchterlonie

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

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

comment:4 Changed 8 years ago by stuartm

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

comment:5 Changed 8 years ago by stuartm

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

comment:6 Changed 8 years ago by stuartm

Type: patchDeveloper Task
Note: See TracTickets for help on using tickets.