﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
762	progdetails menu is slow to load	mythtv@…	paulh	"The progdetails menu is slow to load.  This appears to be a result of computing the background image of m_richtext four(!) times.

This patch gets rid of two of these.  Firstly, UIRichTextType is changed to decouple loading the background image (loadBackgroundImg) and computing m_compBackground (updateBackground()).  A sizable fraction of the time was spent in scaling the loaded image, so this decoupling greatly decreases the cost of SetBackground().  As a result, many of the recomputations of m_compBackground are avoided as well, since that is not necessary if no new background image was loaded.  Secondly,  ProgDetails::setDetails() calls m_richtext->SetBackground(&mybackground).  This was already run in the constructor and does not appear to need to be re-called.

This patch decreased the load time of progdetails on my system (Athlon XP 3000) from 1.05 seconds to 0.35 seconds."	patch	closed	minor	unknown	mythtv		medium	fixed			0
