[mythtv-commits] Ticket #3506: Reduce memory usage by not duplicating button images in memory
MythTV
mythtv at cvs.mythtv.org
Fri May 25 14:23:01 UTC 2007
#3506: Reduce memory usage by not duplicating button images in memory
-------------------------+--------------------------------------------------
Reporter: stuartm | Owner: ijr
Type: enhancement | Status: new
Priority: major | Milestone: 0.21
Component: mythtv | Version: head
Severity: medium |
-------------------------+--------------------------------------------------
The attached 'proof of concept' patch significantly reduces memory usage
of mythfrontend with some themes by not loading the same watermarks and
icons into memory multiple times. Right now if two menu entries share the
same watermark or icon, then that image is loaded each time. The patch
instead maintains a list of loaded images and pointers allowing a single
image in memory to be shared.
Another benefit should be that startup is marginally faster because we no
longer go back to the disk each time.
Example memory savings with blootube-wide (mileage my vary)
{{{
Normal - Without Patch
----------------------
VIRT RES SHR S %CPU %MEM TIME+ COMMAND
593m 302m 33m S 0.0 30.1 0:52.66 mythfrontend
With Patch
----------
VIRT RES SHR S %CPU %MEM TIME+ COMMAND
435m 143m 33m S 0.0 14.3 0:04.54 mythfrontend
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3506>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list