Opened 12 years ago

Closed 12 years ago

#4495 closed patch (fixed)

Guide is slow after multirec merge

Reported by: Mark Buechler <Mark.Buechler@…> Owned by: danielk
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

On my setup, after the multirec merge, guide response time is too slow to really be usable - especially with concurrent recordings set higher than 1. The problem is, with each channel painted on the guide, two calls of QUERY_RECORDER GET_FREE_INPUTS are made to the backend for each cardid. I have 5 physical cards and if I set currency to 3 for each of the 3 DVB cards I have, that's 22 calls for every channel. My guide paints 6 channels per page so that makes 132 calls per page.

This patch caches the results from GET_FREE_INPUTS on the frontend for only the guide for each page drawn. Each guide page is drawn 2 times so that reduces, for me, the calls to 10 for each page. The cache gets cleared for each page draw.

More can be gained by clearing the cache only once when the guide is first brought up, but that would have the side effect of not updating for inputs being grabbed while in the guide.

Attachments (1)

myth_guidespeed2_r15496.diff (3.5 KB) - added by Mark Buechler <Mark.Buechler@…> 12 years ago.
The patch

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Mark Buechler <Mark.Buechler@…>

The patch

comment:1 Changed 12 years ago by danielk

Milestone: unknown0.21
Owner: changed from Isaac Richards to danielk
Status: newassigned

comment:2 Changed 12 years ago by danielk

Resolution: fixed
Status: assignedclosed

(In [15629]) Fixes #4495. Speeds up EPG via caching. Patch by Mark Buechler.

Note: See TracTickets for help on using tickets.